Skip to content

Commit

Permalink
Calling the dataset matches.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
bkowshik committed Sep 14, 2024
1 parent 2f93fdd commit 1c9324b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion isl_2024/scrape_matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
2 changes: 1 addition & 1 deletion nbs/01_scrape_matches.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
Expand Down

0 comments on commit 1c9324b

Please sign in to comment.