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

Uploaded Source

Built Distribution

mechanize-0.4.1-py2.py3-none-any.whl (107.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.1.tar.gz
  • Upload date:
  • Size: 201.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for mechanize-0.4.1.tar.gz
Algorithm Hash digest
SHA256 8954081ef3149794920f0b9ead8af6927059b6ac76d81abc8a4d6366c6fa86ba
MD5 6006e97770370a1273aa79c34321d162
BLAKE2b-256 0479f045393a3068a91b6f2450857086a6f19d9867c04df67b03ff3f350bc449

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 88bbf7cf7aa8d54ac50e9eca16fbd2cbc97d7fd4d4f57985b20066f9063ece2b
MD5 2a3f42dfacfadf1082eeb637fe66d9ae
BLAKE2b-256 0e989d8e8e41374a727e0b0095465c62555b75bcbe4876c659df929e1f5eeddf

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