headers fix

This commit is contained in:
Michał Kozłowski 2023-01-07 14:23:16 +01:00
parent f55125f447
commit cc76e894fd

View File

@ -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: