Giter VIP home page Giter VIP logo

dfs-scraper's Introduction

DFS-Scraper

##Description This program will scrape the data from RotoGuru.com DraftKings and FanDuel tables and add it to a MySQL database. It fetches data like the salary and points by each player of a given date and also shows some of the basic stats. It is fully functional for MLB, NFL and NBA.

##Requirements

  • Python 2.6
  • BeatifulSoup
  • MySQLDB
  • requests

##To Start:

  1. Create tables using the schema in the SQL folder
  2. Edit the db.ini file with your DB credentials
  3. Run roto_fetcher.py from command and edit arguments -s, -b, -e:
    • Set -s (--sport) for sport wanted (mandatory) (Only baseball supported for now)
    • Set -b (--begin) as YYYYMMDD int for starting date
    • Set -e (--end) same as start date for end date
      • Setting -b without -e will fetch a single date
      • Omitting -b and -e will fetch the last DB entry and current date as start and end
    • Set -l (--logging) to F to disable logging (defaults to T)
      • Logging is a simple feature manually written to write errors to text file, font think I need full logging capabilities (i.e. from python logging module) for time being

##Notes: Now compatible with NFL football. To use, run with '-s football' and specify date in weeks as int 1-17 instead of date.
(9/19) Now compatible with basketball. Use '-s basketball' and dates similar to baseball. Will word for dates from opening day of 2014-2015 season (Oct 28 2014) to the end of the regular season (Apr 15 2015).

dfs-scraper's People

Contributors

dknight10 avatar

Watchers

 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.