Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize.
Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize.
Some of the key features:
- The browser class mechanize.Browserimplements the interface ofurllib2.OpenerDirector, so any URL can be opened not justhttp.
- Easy HTML form filling.
- Convenient link parsing and following.
- Browser history (.back()and.reload()methods).
- The RefererHTTP header is added properly (optional).
- Automatic observance of robots.txt(can be disabled if desired).
- Automatic handling of HTTP-Equiv and Refresh.
python-mechanize was created by John J. Lee. Maintenance was taken over by Kovid Goyal.
HomePage | Documentation | Github | FAQ
 
     
     
     
     
     
     
     
     
     
     
     
     
    