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.0.zip (437.7 kB view details)

Uploaded Source

mechanize-0.2.0.tar.gz (378.5 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.0.zip.

File metadata

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

File hashes

Hashes for mechanize-0.2.0.zip
Algorithm Hash digest
SHA256 1da73975716867b1b5b57ddb36c85602c3769c740f4546f2125221eaffd44632
MD5 5b1db766c474a5c8d4be8a83acf39e66
BLAKE2b-256 41ff5972fbc103942d1b37df5045f711c48b88ff7e55553923afc85f84f6f940

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3389fe6fb83241223460cda1f7bb0405f76d7867eafb77556314904fb217cc2a
MD5 4fe7a892abb8f55265d94aaf0b6c275b
BLAKE2b-256 9f0a7703fb3838ff76eafdae57b002f4c7a05d5c857d11a867640b2f99a3c1d1

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