Skip to content

mattdodge/MLB-Player-Scraper

Repository files navigation

MLB-Player-Scraper

It's often useful to scrape and parse player projections from various sources (i.e. ESPN, Yahoo, Rotowire, etc). This tool hopes to facilitate that process.

The tool is built on top of the Scrapy Framework for Python.

Requirements

pip install scrapy unidecode

How do I use the thing?

git clone https://github.com/mattdodge/MLB-Player-Scraper mlbScrape
cd mlbScrape
scrapy crawl <spider-name> -o output.csv -t csv

Current Spiders

  • espnBatters2013
    ESPN 2013 Batter Stats
  • espnPitchers2013
    ESPN 2013 Pitcher Stats
  • espnBatters
    ESPN 2014 Batter Projections
  • espnPitchers
    ESPN 2014 Pitcher Projections
  • yahooBatters
    Yahoo 2014 Batter Projections (requires Yahoo league ID, username/pass)
  • yahooPitchers
    Yahoo 2014 Pitcher Projections (requires Yahoo league ID, username/pass)

License

If you can get it to work, you can use it

About

Scrape players and statistics from various sources, then merge them together!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages