Overview of mechanize features
mastermechanize is a library for stateful programmatic web browsing in Python. It provides several high-level automation features:
mechanize.Browser: Implements theurllib2.OpenerDirectorinterface, allowing it to open URLs beyond justhttp.- Form Handling: Easy HTML form filling.
- Link Navigation: Convenient parsing and following of links.
- Browser History: Support for
.back()and.reload()methods. - HTTP Headers: Automatic and optional handling of the
Refererheader. - Compliance: Automatic observance of
robots.txtand automatic handling ofHTTP-EquivandRefreshheaders.