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

Uploaded Source

Built Distribution

mechanize-0.3.1-py2-none-any.whl (93.3 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.3.1.tar.gz
Algorithm Hash digest
SHA256 45a207bdbf78046dd56381162526b0da09d6844ba60cf7feaad4c2816bbc7cbc
MD5 a58abe7f7a30bed958384c1f3ba2234d
BLAKE2b-256 4c4d11fbb28cb522603b47aa2b5566a41237f03fc66c94a77f915fd17eaaecc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanize-0.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 63b434e427657bbfc501789eaafe684fc51b8de107f02efa2f48ef30194a7ad0
MD5 fc120fc5031825748dcffac4d8bd1436
BLAKE2b-256 ae16db6a6594067e21a791499a4981dc0390b7eb6405f833084668fbbdbefd57

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