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.2.zip (441.9 kB view details)

Uploaded Source

mechanize-0.2.2.tar.gz (381.1 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.2.zip.

File metadata

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

File hashes

Hashes for mechanize-0.2.2.zip
Algorithm Hash digest
SHA256 c1be99dab13f8cb75e590beb0b3821177e9d8a41d5a4b0cde26b0151288acdf1
MD5 7946d8c5c700e1f6670476afa2a6f6cd
BLAKE2b-256 b6134d3a6b688ac4c22f5612376053f69780d9140dd54b2d8b5d09e4a1d096be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.2.tar.gz
Algorithm Hash digest
SHA256 af1b283d3c6180d42655319ce6e8f7b096e2942a9d92072db00d2c69d74156c2
MD5 22fd64c71c065619d27ea8870da6ca68
BLAKE2b-256 aa0aee3fe86a7021259a020a63bda96cd7686678ddb1fee1788f08686bb91036

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