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.2.0

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

Source distributions (sdists)

Source distribution for mechanize 0.2.0
File Size Uploaded
mechanize-0.2.0.zip 437.7 kB Details
mechanize-0.2.0.tar.gz 378.5 kB Details

Release files / mechanize-0.2.0.zip

Download URL mechanize-0.2.0.zip
Size 437.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1da73975716867b1b5b57ddb36c85602c3769c740f4546f2125221eaffd44632
BLAKE2b-256 checksum
How to use checksums
41ff5972fbc103942d1b37df5045f711c48b88ff7e55553923afc85f84f6f940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mechanize-0.2.0.tar.gz

Download URL mechanize-0.2.0.tar.gz
Size 378.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3389fe6fb83241223460cda1f7bb0405f76d7867eafb77556314904fb217cc2a
BLAKE2b-256 checksum
How to use checksums
9f0a7703fb3838ff76eafdae57b002f4c7a05d5c857d11a867640b2f99a3c1d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.9

3 release files

0.1.8

3 release files

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