A tool to help collect NFL player data.
The following tool was made possible by the nflgame API given by the github user BurntSushi.
use_these.py collects relevant player data (relevant as in, data points that give you points on fanduel) and exports them to a text file. Text files in the folders quarter_backs, runing_backs, and wide_receivers_tight_ends, have a number of tuples per file. Each space seperated tuple is of the following form...
'Player Name' 'Player Team' 'Player Pos.' 'Player FanDuel Pts.'
...where the Player Name/Team/Pos are strings and Player Fanduel Pts is a float. There is one for every player in their respective position, i.e, quarterbacks, wide receivers, running backs, and tight ends for each week so far of the 2015 NFL regular season.
new_filter_tool.py gives you the best players as far as matchups go for the current NFL week. Scroll down to new_filter_tool.py to get more information on how I'm finding the best matchups. Similar to quarter_backs, runing_backs, and wide_receivers_tight_ends in data.txt, the text files in picks_(current NFL week) return tuples. For running_back_picks_(current NFL week), tight_end_picks_(current NFL week), and wide_receiver_picks_(current NFL week) the tuples are of the following form..
'Player Name' 'Player Team' 'Player Pos.' 'Player Rec'L 'Player RecYds'L 'Player RecTds'L 'Player RuYds'L 'Player RuTds'L 'Player FumLost'L 'Player FanDuel Pts'
...where Player Name/Team/Pos are strings, Player Rec/RecYds/RecTds/RuYds/RuTds/FumLost are integers, and player FanDuel Pts is a float. Go ahead and ignore the 'L' next to all the integers, this is a result of the DataFrame being saved as a text file and has no meaning other than Pandas seperating the values. For quarter_back_picks_(current NFL week) the tuples are of the following form...
'Player Name' 'Player Team' 'Player Pos.' 'Player PassYds'L 'Player PassTds'L 'Player RuYds'L 'Player RuTds'L 'Player PassInts'L 'Player FumLost'L 'Player FanDuel Pts'
...where Player Name/Team/Pos are strings, Player PassYds/PassTds/RuYds/RuTds/PassInts/FumLost are integers, and player FanDuel Pts is a float. Again ignore the 'L'. data.txt has everything pretty straight forward, but let me know of any comments/advice/concerns.
If you're planning on running the scripts in use_these.py yourself, then you'll need the following:
Once you have all those packages, you're ready to run passing.py, receiving.py, and rushing.py. I've also uploaded the data as text files in the folder data.txt under quarter_backs, runing_backs, and wide_receivers_tight_ends, so if you're not a programmer you can easily look at the data.
The new_filter_tool.py is used based off the positive matchups given by the good people over at FFToday. If you're planning on running the scripts in new_filter_tool.py yourself, then you'll need the following:
Once you have all those packages, you're ready to run filter_pass.py, filter_rush.py, filter_wide.py, and filter_tight.py. I've also uploaded the data as text files in the folder data.txt under picks_(current NFL week), so if you're not a programmer you can easily look at the data.