headers fix
This commit is contained in:
parent
f55125f447
commit
cc76e894fd
@ -9,7 +9,7 @@ import time
|
||||
from pprint import pprint
|
||||
|
||||
session = requests.Session()
|
||||
session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0'})
|
||||
session.headers.update({'User-Agent': 'ImageDownloadOcrBot/1.0 (micha9@op.pl)'})
|
||||
|
||||
def save_state(index, offset):
|
||||
with open("./state.pickle", "wb") as state_file:
|
||||
|
Loading…
Reference in New Issue
Block a user