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

Uploaded Source

Built Distribution

mechanize-0.3.0-py2-none-any.whl (91.0 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mechanize-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d11b7def5953a6e3e82be8318ca1e6db71ecfc519af60b1d0a7b0eb5b611fe86
MD5 5fe19cff3d93b125884dd953359e031c
BLAKE2b-256 072866f86fa3950da2290b2c1d4fc964bb10ce2b0cc6e7ebaf7c9ee00af049cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mechanize-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 25314f297f708b0f0c3103cf595f3e6c87d7c44556f484a3811082b8199ca342
MD5 a9eaade44893a2441c71c6ddb319ce53
BLAKE2b-256 1a8be70d50b64debd3ce030405877b680c729d4e19b9fda15319fa07b942086a

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