From 6d7c08a9af1975e4eb9eee7b0eb55bd0c0960fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Koz=C5=82owski?= Date: Sat, 7 Jan 2023 11:37:32 +0100 Subject: [PATCH] fix --- crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.py b/crawler.py index 52b8124..23dc8ec 100644 --- a/crawler.py +++ b/crawler.py @@ -22,7 +22,7 @@ def save_data(file_name, data): def main(args): category_dict = {"green": "Uwierzytelniona", "yellow": "Skorygowana", "red": "Przepisana"} - if args.start_page: + if args.start_file_name and args.start_page_number: CATEGORY_URL = f"{MAIN_URL}/w/index.php?title=Kategoria:{category_dict[args.type]}&pagefrom={args.start_file_name}" else: CATEGORY_URL = f"{MAIN_URL}/wiki/Kategoria:{category_dict[args.type]}"