This Python3 program uses ESPN Fantasy Basketball API to show the stats of the top 50 available players/free agents with the Best Last 7 Day Average stats in your ESPN Fantasy Basketball League. The information of the players and the stats are displayed in a dataframe format.
This project displays the relevant facts of the players such as:
- Player's Full name
- Player's Position(s)
- Injured (True/False)
- Injury Status (Active/Day-to-Day/Out)
as well as the relevant stats of the players such as:
- Last 7 Day Average Stats
- Last Game Fantasy Points
- 2nd Last Game Fantasy Points
- 3rd Last Game Fantasy Points
- 4th Last Game Fantasy Points
- 5th Last Game Fantasy Points
- swid
- espn_s2
- User-Agent
- Referer
- LeagueID
With Git in Terminal:
git clone https://github.com/troysorongon/ESPN-Fantasy-Basketball-League-API-Best-Last-7-Day-Avg-Stats.git
cd ESPN-Fantasy-Basketball-League-API-Best-Last-7-Day-Avg-Stats
**
Using IDE (e.g Visual Studio Code)
- Download ZIP file
- Unzip ZIP file
- Open folder in IDE
- Install requests (If not already installed, use "sudo" if needed)
pip install requests
- Install pandas (If not already installed, use "sudo" if needed)
pip install pandas
1."micro" into the file (If using Terminal)
micro ESPN_Fantasy_API_Best_Last_7_Day_Avg_git.py
- Fill in the fields that say "Fill in" with your information OR uncomment the options to get a user input for those fields
- Save File (Ctrl + S OR Command + S)
On Terminal:
python3 ESPN_Fantasy_API_Best_Last_7_Day_Avg_git
**
On IDE: Run program
May take a few seconds for the progeam to finish executing due to requesting data from the ESPN API, computation algorithm, and/or CPU speed on your host machine
- Filter the players based on position
- Select the amount of players to display
- Make the program faster with better algorithms
If you would like to share any ideas of new implementations or have any comments about the program. please feel free to share in Discussions!
Please report any issues or bugs that may come across here