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.4.7.tar.gz (217.3 kB view details)

Uploaded Source

Built Distribution

mechanize-0.4.7-py2.py3-none-any.whl (109.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.7.tar.gz
  • Upload date:
  • Size: 217.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for mechanize-0.4.7.tar.gz
Algorithm Hash digest
SHA256 1773a8f5818398e0010e781dc0f942cd88b107a57424c904d545cd827c216809
MD5 f52e9bd0ed02f2e6ca2ed640d111de08
BLAKE2b-256 b0122226549e042be8f2f4dddd3b4a44973e7bacd229f857299f33bde3f77e9d

See more details on using hashes here.

File details

Details for the file mechanize-0.4.7-py2.py3-none-any.whl.

File metadata

  • Download URL: mechanize-0.4.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for mechanize-0.4.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 427e9e15f1335b387cd2b17e41c946f23d0fcbd313792731f86fe0fa3d32b1a6
MD5 3a5c71b7dca59346605fb64fe9324891
BLAKE2b-256 2c436a84f29fb179f144855dfdc8cc1375ec91621efabc0db1ab93f683ed3b18

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