Skip to content

Commit

Permalink
Update 001_Scraping_Latest_Matches.py
Browse files Browse the repository at this point in the history
add a debug print
  • Loading branch information
16bravo authored Feb 8, 2024
1 parent 0122108 commit ca6a4ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/000_Web_Scraping/001_Scraping_Latest_Matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

date_list = date_text.split('<br>')
date_site = date_list[1]
print(date_site)
date_obj = datetime.strptime(date_site, "%b %d")
today = datetime.now()
year = today.year if date_obj.month <= today.month else today.year - 1
Expand Down Expand Up @@ -103,4 +104,4 @@
history_csv = history_csv.drop_duplicates(subset=history_csv.columns.difference(['index']))

# Affichez le DataFrame
history_csv.to_csv('data/source/match_dataset/all_matches.csv', index=False)
history_csv.to_csv('data/source/match_dataset/all_matches.csv', index=False)

0 comments on commit ca6a4ce

Please sign in to comment.