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

Uploaded Source

Built Distribution

mechanize-0.3.4-py2-none-any.whl (106.1 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.3.4.tar.gz
Algorithm Hash digest
SHA256 89e04c57b51c00628037b4eba7c5c560e4691ff02fdf2d7bb10cb4289e9c0666
MD5 537ec45ed9be684e9d944d4aa8659724
BLAKE2b-256 649bed86d44d8d4700b76ce17dec68f61e65903f662e3d239d11d3e800a87133

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanize-0.3.4-py2-none-any.whl
Algorithm Hash digest
SHA256 3979dfddaa35f4e6490aa01236aa2a434a8f1c04f50561616531b254e71ba9a2
MD5 6bf255478553770bb9cdff33bd0d013e
BLAKE2b-256 1f1b4c7467f86d605f8910d7af249c0f2baf23807c48ade1b3a66957eb52b585

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