A Python script that downloads public team data from the Folding@Home Statistics API and prints it to the console.
Written in Python 3.7.0 by Benjamin Cooper (Ratticon) of x0ptis
Downloads public team data from the Folding@Home Statistics API and prints it to the console.
- Python 3 (3.7.0 at time of writing)
- requests (2.23.0 at time of writing)
Install Python 3 if needed.
Install the requests library if needed by running pip install requests
Download fahstats.py and run the script with python fah-teamstats.py
.
By default, the script will download and print statistics for team 236098 (x0ptis). To print the statistics for your team, simply type your team's numerical ID after the command. For example:
python fah-teamstats.py 1234
If you want to bake your team ID(s) into the script, edit the following line with the team IDs you wish to query:
print_team_data(team_ids=[236098])
You can query multiple teams by filling the team_ids array like so:
print_team_data(team_ids=[1,2,3])
Then run the script without appending a team number to the command.
Enjoy, and keep on foldin'!