From 93605e2577adc1a0da408acf38e21d30167ecd55 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 13 Aug 2021 23:03:59 -0700 Subject: [PATCH] Split long useragent string. --- voussoirkit/downloady.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 58aed36..62ef345 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -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'