-
mechanize.Browserandmechanize.UserAgentBaseimplement the interface ofurllib2.OpenerDirector, so:
- any URL can be opened, not just
http: mechanize.UserAgentBaseoffers easy dynamic configuration of user-agent features like protocol, cookie, redirection androbots.txthandling, without having to make a newOpenerDirectoreach time, e.g. by callingbuild_opener().
- any URL can be opened, not just
- 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. - Automatic handling of HTTP-Equiv and Refresh.
http://wwwsearch.sourceforge.net/mechanize/
Sabtu, 06 April 2013
mechanize : Stateful programmatic web browsing in Python, after Andy Lester’s Perl module
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar