From cc76e894fdf330d76285aa3ee6b41356b17382dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Koz=C5=82owski?= Date: Sat, 7 Jan 2023 14:23:16 +0100 Subject: [PATCH] headers fix --- image_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_download.py b/image_download.py index 0d898f4..9dee29c 100644 --- a/image_download.py +++ b/image_download.py @@ -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: