factorize wget user agent
This commit is contained in:
parent
0c0d63a9e0
commit
afae06efc1
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue