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.3.zip (443.6 kB view details)

Uploaded Source

mechanize-0.2.3.tar.gz (382.3 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.3.zip.

File metadata

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

File hashes

Hashes for mechanize-0.2.3.zip
Algorithm Hash digest
SHA256 468063e3475b448a8e3cbaf94b9e69c5efaa8c69a8f21e7592d684291b2705fe
MD5 3682f4a47d9614222cf7561ecb5ab0d4
BLAKE2b-256 50c9a5168783101f7bdc620e3d16fd40051c8cee51702988334d132fb828ca1d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.3.tar.gz
Algorithm Hash digest
SHA256 6953c6fb713762d7e3d57c1d624d581b3de98bd21aa555efdff6426b593372b1
MD5 3a2e803cf1c7e68e172a62db1ad088a2
BLAKE2b-256 aa81917a0a437c0bfebc50ab60a1d3f874ffa279c5b4e9586092132239c3b572

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