NFLOddsVis/scrape_odds.py

11 lines
276 B
Python

import requests
for year in range(2024, 2025):
URL = "https://www.sportsoddshistory.com/nfl-game-season/?y="+str(year)
page = requests.get(URL)
f = open("src/data/"+str(year)+".html", "w", encoding="utf-8")
f.write(page.text)
f.close
print("Downloaded " + str(year))