Skip to main content

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.

Release files for mechanize 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mechanize 0.3.1
File Size Uploaded Provenance Actions
mechanize-0.3.1.tar.gz 187.7 kB Without provenance Details for mechanize-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mechanize 0.3.1
File Interpreter ABI Platform Actions
mechanize-0.3.1-py2-none-any.whl Python 2 none any Details for mechanize-0.3.1-py2-none-any.whl

Total release size: 281.0 kB

Release files / mechanize-0.3.1.tar.gz

Download URL mechanize-0.3.1.tar.gz
Size 187.7 kB
Tags Source
SHA-256 checksum
How to use checksums
45a207bdbf78046dd56381162526b0da09d6844ba60cf7feaad4c2816bbc7cbc
BLAKE2b-256 checksum
How to use checksums
4c4d11fbb28cb522603b47aa2b5566a41237f03fc66c94a77f915fd17eaaecc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mechanize-0.3.1-py2-none-any.whl

Download URL mechanize-0.3.1-py2-none-any.whl
Size 93.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
63b434e427657bbfc501789eaafe684fc51b8de107f02efa2f48ef30194a7ad0
BLAKE2b-256 checksum
How to use checksums
ae16db6a6594067e21a791499a4981dc0390b7eb6405f833084668fbbdbefd57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mechanize 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files No provenance

0.1.7b

0.1.6b

0.1.5b

0.1.4b

0.1.2b

0.1.1a

0.1.0a

0.0.11a

0.0.10a

0.0.9a

0.0.8a

0.0.1a

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page