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

Uploaded Source

Built Distribution

mechanize-0.4.5-py2.py3-none-any.whl (109.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.5.tar.gz
  • Upload date:
  • Size: 216.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0

File hashes

Hashes for mechanize-0.4.5.tar.gz
Algorithm Hash digest
SHA256 6355c11141f6d4b54a17fc2106944806b5db2711e60b120d15d83db438c333fd
MD5 7c771ff38cced05a6153b56a155f5b76
BLAKE2b-256 771b7e4b644108e4e99b136e52c6aae34873fcd267e3d2489f3bd2cff8655a59

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.4.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b7f4680b1725034ba399ed3c61a6290ad103b94be2cc7b1a198a03544ad5858
MD5 62b0a94c67d79386c34d1ea07a189fd0
BLAKE2b-256 130877368b47ba2f9e0c03f33902ed2c8e0fa83d15d81dcf7fe102b40778d810

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