NFLOddsVis/scrape_odds.py

11 lines
272 B
Python
Raw Normal View History

2025-01-22 21:34:06 -05:00
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))