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

Uploaded Source

Built Distribution

mechanize-0.3.6-py2-none-any.whl (106.4 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.3.6.tar.gz
Algorithm Hash digest
SHA256 654e705157156c1f316601ea4f7ab27e96713a8a4dabe1604e6cc8d48e0aa1e8
MD5 807493c30df8b2e92a91538b7a8eb886
BLAKE2b-256 a7ac7f54bcf39b62cd56dec461f4c5e2d7c096508ab2b283c7ee099a466e1b9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanize-0.3.6-py2-none-any.whl
Algorithm Hash digest
SHA256 5c57abcd3ef6c9b3edb967b370ff73d0b862904b9b288f2da8ecdd67463f9a6b
MD5 7fe70170a981b22d87713b9518da0320
BLAKE2b-256 8263fddbc58b0eabdd6cf0c4fde18279077a8ed4db148e7dab03f1f1e978a5aa

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