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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.4.6.tar.gz
Algorithm Hash digest
SHA256 d16cea241253b5eb6380bf8a46627cad91d1f2c3f93a33279a31ce276d6c5d44
MD5 7c0f060d4510605298a24ec28a522f18
BLAKE2b-256 774cdf62283d6e24ffff77e4fc1b07b14e3e32d52749ed6181df905b204ee214

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mechanize-0.4.6-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.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for mechanize-0.4.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5e416032ae84e3b031fb3d14d9069f846af46155750d3d48f68c7cf5cc3d9e9
MD5 e986993908c43db8f82a990ca796fe49
BLAKE2b-256 e36ab2000966ea804772b96add0b7b66e75238690a5644c6726b6f2bd27857c3

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