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

Uploaded Source

Built Distribution

mechanize-0.4.3-py2.py3-none-any.whl (108.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.3.tar.gz
  • Upload date:
  • Size: 212.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for mechanize-0.4.3.tar.gz
Algorithm Hash digest
SHA256 d7d7068be5e1b3069575c98c870aaa96dd26603fe8c8697b470e2f65259fddbf
MD5 3e6ef3d2d0092f43cf712907aee439aa
BLAKE2b-256 64f11aa4c96dea14e17a955019b0fc4ac1b8dfbc50e3c90970c1fb8882e74a7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mechanize-0.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for mechanize-0.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e8a7703bef5d43b5c753e64e27451b4e66fdc32554b31f5563ad1a82f3142bc
MD5 3cac491b19435ae1f761af330c4bbe95
BLAKE2b-256 bc685ab6f96dfbdae2182e214cf9cc4790f2810c695c04034cc067b0e4ffa2b7

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