A Python package for scraping fantasy football draft rankings across multiple websites.
To install and use as a Python package:
python3 -m pip install fantasy-rankings-scraper
Clone the repository onto your machine to get started. Ensure you have Python and pip installed, then set up the virtual environment using:
pipenv install -r "requirements.txt"
pipenv shell
from fantasy_rankings_scraper import scrape
data = scrape('fantasypros.com')
print(data.get_format(1))
python scrape.py fantasypros.com 1
Both of these will output the scraped Standard scoring rankings from fantasypros.com.
- 1 = Standard
- 2 = Half-PPR
- 3 = PPR
This project is for learning purposes only. Scraping websites may violate terms of use. Please use responsibly and do not create large volumes of traffic for supported sites. This project is in no way affiliated with the NFL or any of the supported websites.