Skip to content

n-roth12/fantasy-rankings-scraper

Repository files navigation

FANTASY-RANKINGS-SCRAPER n-roth12 PyPI version

A Python package for scraping fantasy football draft rankings across multiple websites.

Installation

As Package

To install and use as a Python package:

python3 -m pip install fantasy-rankings-scraper

Repo

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

Usage

Package Example

from fantasy_rankings_scraper import scrape
data = scrape('fantasypros.com')

print(data.get_format(1))

Command Line Example

python scrape.py fantasypros.com 1

Both of these will output the scraped Standard scoring rankings from fantasypros.com.

About

Scoring Format Mapping

  • 1 = Standard
  • 2 = Half-PPR
  • 3 = PPR

Currently Supported Sites

Terms

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.

About

A Python package for scraping fantasy football draft rankings across multiple websites.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages