Skip to content

JamesChapmanNV/DraftKings_Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

DraftKings_Scraper

Open In Colab
  • This repository contains a Jupyter Notebook that scrapes NFL contest data from DraftKings' website. It provides robust ‘Data Cleaning’ and ‘Multi-Core Processing’ for efficient resource usage.
  • DraftKings removes data after ~4 days! I ran this notebook 2-3 times a week throughout the season.
  • The output is structured into Pandas DataFrames (CSV’s) for subsequent analysis and model building. This is ready for data science and machine learning experiments. Uniquely, this includes the percent usage per player.
  • Example: If popular players (highly used, high %) are predicted to underperform, will unpopular players be better picks etc.
  • Can easily be adapted to other sports and DraftKings contests.

Creates 3 CSV's (Below - all Columns Summary)


1. Contest Details DataFrame (30 Columns) (contests.csv)

  • max_entries
  • name
  • entries
  • entry_fee
  • total_prizes
  • date_time
  • contest_id
  • draftGroupID
  • gameType
  • is_guaranteed
  • is_starred
  • is_winner_take_all
  • is_double_up
  • is_fifty_fifty
  • is_multiplier
  • IsCasual
  • IsBeginner
  • date
  • week
  • year
  • draftGroupStatus
  • contestStatus
  • pt
  • pd.LiveFinalSeat
  • attr.IsPrivate
  • tix
  • pd.Experience
  • is_tournament_of_champ
  • pd.Prize
  • crownsAwarded

2. Contest Results DataFrame (6 Columns) (contestResults.csv)

  • contest_id
  • place
  • entry_id
  • points
  • lineup - Actual lineup used ex: "DST Vikings FLEX Rashid Shaheed QB Josh Allen..."
  • payout - Actual money won by entry in contest

3. Player Selections DataFrame (5 Columns) (contestOwnership.csv)

  • contest_id
  • player
  • pos
  • drafted - actual percentage of entries used this player in lineup (for the given contest ID)
  • points - actual points this player scored (fantasy points)

About

For every NFL contest on DraftKings, collect all entry results & the % each player was used.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors