Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1010 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 1010 Bytes

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