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.1.zip (440.2 kB view details)

Uploaded Source

mechanize-0.2.1.tar.gz (380.5 kB view details)

Uploaded Source

File details

Details for the file mechanize-0.2.1.zip.

File metadata

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

File hashes

Hashes for mechanize-0.2.1.zip
Algorithm Hash digest
SHA256 e6e634392ad25d076463c49620c9623c8ed20a1ab9e6f5126bc3bd9e27e06fb1
MD5 44a380d371e6f64d1503bc04c4660c8c
BLAKE2b-256 552ccc2cdbf77e8a53e9b954c909f83589a4bc5e0079777d33f0882b7748a055

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ce82da0adce340b3c09b00c1663ccf771d5ec0c3dceabb51a02d3786267f9c2b
MD5 0577e595de60f2553cd76fcf625babb7
BLAKE2b-256 d0b6f3604d34b900ad9ece787b982113c998dad419cee5141bfb39744bbbd45d

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