NFLOddsVis/scrape_odds.py
2025-01-22 21:34:06 -05:00

11 lines
272 B
Python

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