wait between scrapping requests, avoid triggering captcha interception
This commit is contained in:
parent
bdcef0911d
commit
fc9b313832
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
import requests, re, json, os, yaml
|
||||
import requests, re, json, os, yaml, time
|
||||
from db import *
|
||||
|
||||
def load_cookies_from_file(file_path):
|
||||
@ -98,6 +98,7 @@ def update_items():
|
||||
'''add new history entries for items in database'''
|
||||
in_db = get_item_keys()
|
||||
for item in in_db:
|
||||
time.sleep(2)
|
||||
new_entry = check_item(item)
|
||||
fill_db(new_entry)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user