factorize wget user agent

This commit is contained in:
Christophe Benz 2010-11-16 12:16:14 +01:00
commit afae06efc1
3 changed files with 3 additions and 2 deletions

View file

@ -120,6 +120,7 @@ class BaseBrowser(mechanize.Browser):
USER_AGENTS = {
'desktop_firefox': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.3',
'android': 'Mozilla/5.0 (Linux; U; Android 2.1; en-us; Nexus One Build/ERD62) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17',
'wget': 'Wget/1.11.4',
}
USER_AGENT = USER_AGENTS['desktop_firefox']
SAVE_RESPONSES = False