From 1c9324b9813cf72302bf394c6ad67cdf221e3ec6 Mon Sep 17 00:00:00 2001 From: Bhargav Kowshik Date: Sat, 14 Sep 2024 19:19:49 +0530 Subject: [PATCH] Calling the dataset matches.txt --- isl_2024/scrape_matches.py | 2 +- nbs/01_scrape_matches.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/isl_2024/scrape_matches.py b/isl_2024/scrape_matches.py index b5000e2..b8892c3 100644 --- a/isl_2024/scrape_matches.py +++ b/isl_2024/scrape_matches.py @@ -46,7 +46,7 @@ # %% ../nbs/01_scrape_matches.ipynb 6 if response.status_code == 200: logging.info('API request successful. Content length: {}'.format(len(response.content))) - with open(os.path.join(data_dir, 'scrape_matches.txt'), 'a') as f: + with open(os.path.join(data_dir, 'matches.txt'), 'a') as f: f.write(response.text + "\n") else: logging.error('API request failed. Status code: {}'.format(response.status_code)) diff --git a/nbs/01_scrape_matches.ipynb b/nbs/01_scrape_matches.ipynb index 931345f..d2cd8c1 100644 --- a/nbs/01_scrape_matches.ipynb +++ b/nbs/01_scrape_matches.ipynb @@ -98,7 +98,7 @@ "#| export\n", "if response.status_code == 200:\n", " logging.info('API request successful. Content length: {}'.format(len(response.content)))\n", - " with open(os.path.join(data_dir, 'scrape_matches.txt'), 'a') as f:\n", + " with open(os.path.join(data_dir, 'matches.txt'), 'a') as f:\n", " f.write(response.text + \"\\n\")\n", "else:\n", " logging.error('API request failed. Status code: {}'.format(response.status_code))"