1def __init__(self, proxies=[], user_agents=[]):
2 mechanize.Browser.__init__(self)
3 self.set_handle_robots(False)
4 self.proxies = proxies
5 self.user_agents = user_agents + ['Mozilla/4.0 ', 'FireFox/6.01', 'ExactSearch', 'Nokia7110/1.0']
6 self.cookie_jar = cookielib.LWPCookieJar()
7 self.set_cookiejar(self.cookie_jar)
8 self.anonymize()