GithubHelp home page GithubHelp logo

mattdodge / mlb-player-scraper Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 258 KB

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

Python 100.00%
python mlb-gameday mlb scrapy

mlb-player-scraper's Introduction

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

mlb-player-scraper's People

Contributors

mattdodge avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.