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

Uploaded Source

Built Distribution

mechanize-0.3.2-py2-none-any.whl (93.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mechanize-0.3.2.tar.gz
  • Upload date:
  • Size: 187.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mechanize-0.3.2.tar.gz
Algorithm Hash digest
SHA256 fff3be76e0c250bcc9e556a224b1714b027477b251d870d293541fbe303e6f17
MD5 f98004a909f955c58abb330dd7997db5
BLAKE2b-256 cacb9f2d084067f2a0ba72d91b0cb2be8bfbe4c541e1b772d6cb96b6883d7734

See more details on using hashes here.

File details

Details for the file mechanize-0.3.2-py2-none-any.whl.

File metadata

File hashes

Hashes for mechanize-0.3.2-py2-none-any.whl
Algorithm Hash digest
SHA256 faa4e8ec549c953835d3c033d7bff8d22c669c2ea1770ab03d508e9487587ffc
MD5 587537cc3180d417ee9dc30bafd5d5c3
BLAKE2b-256 01bd9b77d259c3db2f9ce7e9a77ccd94403104f1c4663dc72a4f658237fa1e3f

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