Merge pull request #337 from mrshu/patch-1

fix: Add missing comma
This commit is contained in:
Somdev Sangwan
2022-01-30 00:32:00 +05:30
committed by GitHub

View File

@@ -22,7 +22,7 @@ def requester(url, data, headers, GET, delay, timeout):
GET, POST = True, False GET, POST = True, False
time.sleep(delay) time.sleep(delay)
user_agents = ['Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Firefox/60.0', user_agents = ['Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Firefox/60.0',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36' 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36',
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.991'] 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.991']
if 'User-Agent' not in headers: if 'User-Agent' not in headers:
headers['User-Agent'] = random.choice(user_agents) headers['User-Agent'] = random.choice(user_agents)