From 68231dce0aa539814637c6928872ac55e2519c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Koz=C5=82owski?= Date: Sat, 7 Jan 2023 11:39:22 +0100 Subject: [PATCH] counter update --- crawler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crawler.py b/crawler.py index 23dc8ec..f24eaeb 100644 --- a/crawler.py +++ b/crawler.py @@ -36,6 +36,9 @@ def main(args): try: with tqdm(total=max_len) as pbar: + if args.start_page_number: + pbar.update(data_number) + while data_number < max_len: pbar.set_description(f"Page number: {page_number}") time.sleep(5)