Split long useragent string.
This commit is contained in:
parent
6442e8e40c
commit
93605e2577
1 changed files with 6 additions and 1 deletions
|
@ -16,8 +16,13 @@ log = vlogging.getLogger(__name__, 'downloady')
|
|||
|
||||
warnings.simplefilter('ignore')
|
||||
|
||||
USERAGENT = '''
|
||||
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
|
||||
Chrome/42.0.2311.152 Safari/537.36'
|
||||
'''.strip().replace('\n', ' ')
|
||||
|
||||
HEADERS = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36'
|
||||
'User-Agent': USERAGENT,
|
||||
}
|
||||
|
||||
FILENAME_BADCHARS = '*?"<>|\r\n'
|
||||
|
|
Loading…
Reference in a new issue