# mechanize.Browser is a subclass of mechanize.UserAgentBase, which is, in turn, a subclass of urllib2.OpenerDirector (in fact, of mechanize.OpenerDirector), so: * any URL can be opened, not just http: * mechanize.UserAgentBase offers easy dynamic configuration of user-agent features like protocol, cookie, redirection and robots.txt handling, without having to make a new OpenerDirector each time, e.g. by calling build_opener(). # Easy HTML form filling, using ClientForm interface. # Convenient link parsing and following. # Browser history (.back() and .reload() methods). # The Referer HTTP header is added properly (optional). # Automatic observance of robots.txt. # Automatic handling of HTTP-Equiv and Refresh. ·
http://wwwsearch.sourceforge.net/mechanize/#tests# mechanize.Browser is a subclass of mechanize.UserAgentBase, which is, in turn, a subclass of urllib2.OpenerDirector (in fact, of mechanize.OpenerDirector), so: * any URL can be opened, not just http: * mechanize.UserAgentBase offers easy dynamic configuration of user-agent features like protocol, cookie, redirection and robots.txt handling, without having to make a new OpenerDirector each time, e.g. by calling build_opener(). # Easy HTML form filling, using ClientForm interface. # Convenient link parsing and following. # Browser history (.back() and .reload() methods). # The Referer HTTP header is added properly (optional). # Automatic observance of robots.txt. # Automatic handling of HTTP-Equiv and Refresh. ·
http://wwwsearch.sourceforge.net/mechanize/#tests