Skip to main content

Stateful programmatic web browsing.

Project description

Stateful programmatic web browsing, after Andy Lester’s Perl module WWW::Mechanize.

mechanize.Browser implements the urllib2.OpenerDirector interface. Browser objects have state, including navigation history, HTML form state, cookies, etc. The set of features and URL schemes handled by Browser objects is configurable. The library also provides an API that is mostly compatible with urllib2: your urllib2 program will likely still work if you replace “urllib2” with “mechanize” everywhere.

Features include: ftp:, http: and file: URL schemes, browser history, hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and Refresh, Referer [sic] header, robots.txt, redirections, proxies, and Basic and Digest HTTP authentication.

Much of the code originally derived from Perl code by Gisle Aas (libwww-perl), Johnny Lee (MSIE Cookie support) and last but not least Andy Lester (WWW::Mechanize). urllib2 was written by Jeremy Hylton.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mechanize-0.3.7.tar.gz (203.7 kB view details)

Uploaded Source

Built Distribution

mechanize-0.3.7-py2-none-any.whl (105.9 kB view details)

Uploaded Python 2

File details

Details for the file mechanize-0.3.7.tar.gz.

File metadata

  • Download URL: mechanize-0.3.7.tar.gz
  • Upload date:
  • Size: 203.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for mechanize-0.3.7.tar.gz
Algorithm Hash digest
SHA256 ee66e1a6af790898894dd0318914ced413d94f46a54f881eb337081ff9702cd2
MD5 f47e0c998f3867469e3843e890d74623
BLAKE2b-256 efbe4c433dfa7703c0fa81ca3a88afe74b2b9e2b23e664479a4913ecefe7f8ca

See more details on using hashes here.

File details

Details for the file mechanize-0.3.7-py2-none-any.whl.

File metadata

  • Download URL: mechanize-0.3.7-py2-none-any.whl
  • Upload date:
  • Size: 105.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for mechanize-0.3.7-py2-none-any.whl
Algorithm Hash digest
SHA256 630e241204a57ca4b026c1e8d1a9b61ca0500929b28e82dab7c0763c650a8717
MD5 0d88307407b7e03746145ed6ade0856e
BLAKE2b-256 e0544f1dbac350ae4503cf4335a30daaad9486a0791e4f00a83312fccec8a914

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page