fix: Add missing comma
* Add missing comma to `user_agents` list
This commit is contained in:
@@ -22,7 +22,7 @@ def requester(url, data, headers, GET, delay, timeout):
|
||||
GET, POST = True, False
|
||||
time.sleep(delay)
|
||||
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']
|
||||
if 'User-Agent' not in headers:
|
||||
headers['User-Agent'] = random.choice(user_agents)
|
||||
|
||||
Reference in New Issue
Block a user