Welcome! This is the project page for a data scraper targeting Pro Football Reference 🏆.
Note: You’ll need a Zyte API key 🔑 to get things rolling! Place it in a
.envfile at the root of this project, following the format in.env.example. This helps us bypass slow rate limits (10 req/min). Also, be sure to have a Zyte certificate filezyte-ca.crtat the root. Runpython combine_certs.pyafterward to createcombined-ca-bundle.crt.
- Clone the repository: Open your terminal, navigate to your desired location, and clone the repo.
- Install Requirements:
- Run
make runto set up a virtual environment (venv) and install requirements. The script will execute inside the virtual environment. - If you’re using Conda, use
requirements.txtand ensure you’re runningpython3.12.⚠️ Note:make rundepends on usingvenv. Enter the environment, install requirements, and then runpython scraper.py.
- Set up a virtual environment (or Conda) with
python3.12. Activate it, then runpip install -r requirements.txt. - After setup, simply run
python scraper.pyto start scraping! 🎉
Feel free to fork the repo and make pull requests for any improvements.
Happy scraping! 🚀