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

Uploaded Source

Built Distribution

mechanize-0.4.0-py2.py3-none-any.whl (107.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mechanize-0.4.0.tar.gz
  • Upload date:
  • Size: 201.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mechanize-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6eb35881e08436dfba2db00abec98fe948ec25122edee77589ef060fc747e595
MD5 a7e0ffd6a12dae64cedda7f18a06fd88
BLAKE2b-256 91130bacdb624d9a820d08b634cfcecf276cde20af9bae6ddcb5c62e8a62a717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mechanize-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mechanize-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8082da10c70e6f94622229b74c0f228c9ea086460d0fd76f72072806eb3bd639
MD5 b8fb0365da23c748d9b6d38b948d2efa
BLAKE2b-256 2e4268aeb0ceddfd684c478e73e7d687f2710d92bbc370fd0e7a6100dd65771c

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