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.5.zip (445.3 kB view details)

Uploaded Source

mechanize-0.2.5.tar.gz (383.9 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.5.zip.

File metadata

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

File hashes

Hashes for mechanize-0.2.5.zip
Algorithm Hash digest
SHA256 84b9d9dfe34a039dab75adf33e226631f29a5267a0fdfa99a8ff035a021507f4
MD5 a497ad4e875f7506ffcf8ad3ada4c2fc
BLAKE2b-256 cafdedbcc1abd5bbfc0e19fb3a8d3eebfd11d7d1ce9c8f24c0f54e8db09956b3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.5.tar.gz
Algorithm Hash digest
SHA256 2e67b20d107b30c00ad814891a095048c35d9d8cb9541801cebe85684cc84766
MD5 32657f139fc2fb75bcf193b63b8c60b2
BLAKE2b-256 32bcd5b44fe4a3b5079f035240a7c76bd0c71a60c6082f4bfcb1c7585604aa35

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