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 Distributions

mechanize-0.2.4.zip (444.0 kB view details)

Uploaded Source

mechanize-0.2.4.tar.gz (382.7 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.4.zip.

File metadata

  • Download URL: mechanize-0.2.4.zip
  • Upload date:
  • Size: 444.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mechanize-0.2.4.zip
Algorithm Hash digest
SHA256 06fe47469cadb488628607572337d00bbefc12de27470e862c02795f67e610b6
MD5 b35e514db998f3da0d19f5f838882389
BLAKE2b-256 69fe018ca62f766b7defec53ca79c0d592f0c0d27405578c5bd1714edc0e0cbb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.4.tar.gz
Algorithm Hash digest
SHA256 4053a37162ac982ad64f8b62afaafa1b91625b0c6cdabda9971f6bcbacad458d
MD5 0c1c3cec1c6d7b5d87662a069f04eb8d
BLAKE2b-256 4783121b5e1e5817758038b6676c4a39a9985c63c6ac76a051b57a26c8698b6c

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