- clone this repo
pipenv shell
andpipenv install
- if you don't want to use pipenv, the dependencies are just
requests
andbs4
python main.py
will pull down NFL stats from the current year and save them to a sqlite database. seedb.py
for the very simple schema.- you can optionally pass
--start {year}
or--end {year}
to pull a range. both default to the current year. - by default, the library ensures a minimum of two seconds between API requests. you can change this by passing
--rate {seconds}
, whereseconds
is the new minimum delay.
apache-2