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

Uploaded Source

Built Distribution

mechanize-0.4.2-py2.py3-none-any.whl (107.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.2.tar.gz
  • Upload date:
  • Size: 201.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for mechanize-0.4.2.tar.gz
Algorithm Hash digest
SHA256 b680ca1b4fabe5ef52024d120f40b8e2ed7d175ed4d67225d2c477dac7c7a58b
MD5 4419ed4dafb78a3a50d898f48b56407b
BLAKE2b-256 796bc256ffe2abd560a2857bd66131e01ddfb4b123510a0100a495ded8f191cc

See more details on using hashes here.

File details

Details for the file mechanize-0.4.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mechanize-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 107.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for mechanize-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1f9c755867869c4be54c0d506418353b67a89c2a10fff0c933c6ac00754ebc5
MD5 94de9e9b1cb5767f9a0b1c6a583ea9f3
BLAKE2b-256 e219632cfa67cce4b097963afcdfb2e744daead4aacfea25f374339cc719acef

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