From 505de7fef04444b5ac0e745d9da2ad98aa3d9040 Mon Sep 17 00:00:00 2001 From: Pascal Rath Date: Tue, 8 Oct 2024 21:56:42 +0200 Subject: [PATCH] remove prefix from web-crawlser output --- web_crawler/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_crawler/main.py b/web_crawler/main.py index 7ed1237..563575d 100644 --- a/web_crawler/main.py +++ b/web_crawler/main.py @@ -101,7 +101,7 @@ def run(self): def _save_results(self): print('SAVING INFORMATION') - with open(f'{BASE_DIR}/out/results_{safe_url_key(TARGET)}.json', 'w', encoding='utf-8') as f: + with open(f'{BASE_DIR}/out/{safe_url_key(TARGET)}.json', 'w', encoding='utf-8') as f: f.write(json_dumps(self.results, indent=4)) @staticmethod