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

Uploaded Source

Built Distribution

mechanize-0.3.3-py2-none-any.whl (93.5 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.3.3.tar.gz
Algorithm Hash digest
SHA256 74fe5cbcd237cc2cc0c9843dcfd9033097d91bf43c42de024701a1ee7d9cab8c
MD5 8eb41092d4619095f31607252d48bc0a
BLAKE2b-256 2b8cdfb36fe3cdc889f5550e9d09a5a4cfefb8ee5b857c6a37903a581695f335

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanize-0.3.3-py2-none-any.whl
Algorithm Hash digest
SHA256 f4d365c6f08252a551d306805f892f9cb095654039f7b50d0920a7fc13dbf7b3
MD5 02048b9bb3fdff84a012b94a14989e2c
BLAKE2b-256 16aba2bdf797fd2046d59f257badc2331dde1397431b64561c46c88d5bc53797

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