Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JSlush611/PrizePicks
/ functions
Functions
45 in github.com/JSlush611/PrizePicks
⨍
Functions
45
◇
Types & classes
0
↓ 8 callers
Function
Calc_Avg
Iterates over stats list and calculates the stat that is needed based on the key value matching Divides by length of season_stats
calculatenba.py:25
↓ 8 callers
Function
Cleanse_Name
Replace any names with ' in them as it messes up the request and search
misc.py:1
↓ 4 callers
Function
Calculate_Avg_Multiple_Years
(stats_list, stat_needed)
calculatenba.py:37
↓ 4 callers
Function
Create_JSON_Object
Create valid JSON Object to parse from the results of a get request to the players gamelog which is stored in Player_Dict Will be used
createjson.py:17
↓ 4 callers
Function
get_Player_Info
Creates URL to send get request to to recieve the results of a gamelog search Attempts to find a propery's content which contains the info
input.py:45
↓ 2 callers
Function
Build_URL
Build the URL from the espn gamelog base Mode represents the sport they want NFL, NBA etc
input.py:33
↓ 2 callers
Function
Gather_NBA_Events_Stats
Takes in event list and appends just the stats from the event object Iterates over every event in tbls appending all stats to stats_list
nbastats.py:5
↓ 2 callers
Function
Gather_NBA_Tbls
Game log stored into Tbls To iterate over all stats we will have to get a list of each tbls Each one represents a month in the game lo
parsenba.py:20
↓ 2 callers
Function
Gather_NFL_Events_Stats
Also takes in event list, only one tbls so does not need to iterate over tbls, just the list Ignore Pro bowl game
nflstats.py:3
↓ 2 callers
Function
Last_2_NFL_Against_Team_Stats
Get NFL games from a certain team for a player over an amount of years
nflstats.py:64
↓ 2 callers
Function
Last_4_NFL_Events_Stats
(full_name, year)
nflstats.py:51
↓ 2 callers
Function
Last_5_NBA_Against_Team_Stats
(full_name, year, team)
nbastats.py:72
↓ 2 callers
Function
Last_7_NBA_Events_Stats
Gather last 7 NBA games from a player and their stats Used to get average of a players recent performances
nbastats.py:55
↓ 2 callers
Function
NBA_Season_Stats
Gather all stats from all games in NBA season for given player and year
nbastats.py:25
↓ 2 callers
Function
NFL_Season_Stats
Gather all stats from all games in NFL season
nflstats.py:22
↓ 2 callers
Function
Parse_ID
Find players ID from their gamelog link which is built
input.py:16
↓ 2 callers
Function
Parse_Name
Find players name from their gamelog link which is built
input.py:24
↓ 2 callers
Function
Season_NBA_Events
Gather all events from NBA season Used in other functions
nbaevents.py:64
↓ 2 callers
Function
Season_NFL_Events
Gather all events from NFL Season Used in other functions
nflevents.py:68
↓ 1 callers
Function
Calc_Season_Total
Iterates over stats list and calculates the stat that is needed based on the key value matching Adds to total
calculatenba.py:4
↓ 1 callers
Function
Calc_Season_Total
Iterates over stats list and calculates the stat that is needed based on the key value matching Adds to total
calculatenfl.py:4
↓ 1 callers
Function
Cleanse_Link
Remove any periods in the name in the link to parse their name out Only removes periods in the name part of the link
misc.py:13
↓ 1 callers
Function
Create_Bet_Dicts
Players names were not matched to bets before, so use bets_list and players_list to create dictionary for each bet, with the players name
parsebets.py:45
↓ 1 callers
Function
Create_Current_Bet_Dicts
(Needed_Stat)
parsebets.py:78
↓ 1 callers
Function
Create_NBA_Score
(bet_dicts)
createnbascore.py:10
↓ 1 callers
Function
Gather_All_NBA_Events
Uses Gather_NBA_Tbls to collect every NBA Tbls Iterates each event from each Tbls and append them to events_list This will be all the
nbaevents.py:5
↓ 1 callers
Function
Gather_Bets_From_Data
Gather all the bet objects and append to bets_list Gather all the players and append to players_list
parsebets.py:16
↓ 1 callers
Function
Gather_Bets_Json
Gather Bet data recieved from PrizePicks Turn into JSON
parsebets.py:3
↓ 1 callers
Function
Gather_NBA_Teams_Stats
Takes in event list and appends stats from team the user selects Team is three letter abbreviation, ATL etc Used in other function
nbastats.py:38
↓ 1 callers
Function
Gather_NFL_Events
NFL gamelog can have multiple groups with post season However each group only has one tbls
nflevents.py:6
↓ 1 callers
Function
Gather_NFL_Team_Stats
Takes in event list and appends stats from team the user selects Team is three letter abbreviation, ATL etc Used in other function
nflstats.py:34
↓ 1 callers
Function
Gather_X_NBA_Events
Gathers X amount of games for a player Checks if the first tbls avaible has enough games for the number If not, iterates over each tab
nbaevents.py:28
↓ 1 callers
Function
Gather_X_NFL_Events
Gathers X amount of games for a player Checks if the first group avaible has enough games for the number If not, iterates over to next
nflevents.py:31
↓ 1 callers
Function
NBA_Group_Len
Gathers groups which represent Postseason and Regular Season Used to gather Tbls in each group Subtract 1 as we do not care about pres
parsenba.py:4
↓ 1 callers
Function
NFL_Group_Len
Gather groups incase of post season
parsenfl.py:5
Function
Calc_Avg
Iterates over stats list and calculates the stat that is needed based on the key value matching Divides by length of season_stats
calculatenfl.py:25
Function
Calculate_Avg_Multiple_Years
(stats_list, stat_needed)
calculatenfl.py:37
Function
Compare_Avg_Against_Team_NBA
(bet_dicts)
iteratenba.py:81
Function
Compare_Avg_Against_Team_NFL
(bet_dicts)
iteratenfl.py:82
Function
Compare_Recent_Avg_NBA
(bet_dicts, type="recent")
iteratenba.py:45
Function
Compare_Recent_Avg_NFL
(bet_dicts)
iteratenfl.py:45
Function
Compare_SZN_Avg_NBA
(bet_dicts)
iteratenba.py:9
Function
Compare_SZN_Avg_NFL
(bet_dicts)
iteratenfl.py:8
Function
Create_NFL_Score
(bet_dicts)
createnflscore.py:9
Function
main
()
bets.go:12