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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mechanize-0.4.4.tar.gz
.
File metadata
- Download URL: mechanize-0.4.4.tar.gz
- Upload date:
- Size: 213.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fff89e973bdf1aee75a351bd4dde53ca51a7e76944ddeae3ea3b6ad6c46045c |
|
MD5 | cb70a56364fb59e59b50b2af918233bb |
|
BLAKE2b-256 | 064d1cb6d4e395a6d487d294c78e0d613a0b18b0c4351cc92059f39c699ac65f |
File details
Details for the file mechanize-0.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: mechanize-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 108.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d318deef5dec5208a69dc6feaacddc9570873277cd678098cd7d30eb60af4e80 |
|
MD5 | 68009cb3d3c52e87dd6f2a02af220977 |
|
BLAKE2b-256 | 8804178c60f59e8e0050c594429b76029cfaa1f0afd4bdbaaad195141fbea9bb |