ratticon / fah-teamstats

Python script that downloads public team data from the Folding@Home Statistics API and prints it to the console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fah-teamstats

A Python script that downloads public team data from the Folding@Home Statistics API and prints it to the console.

Screenshot of Example Output

Written in Python 3.7.0 by Benjamin Cooper (Ratticon) of x0ptis

What It Does:

Downloads public team data from the Folding@Home Statistics API and prints it to the console.

Requirements:

  • Python 3 (3.7.0 at time of writing)
  • requests (2.23.0 at time of writing)

Getting Started:

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

Custom Script

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'!

About

Python script that downloads public team data from the Folding@Home Statistics API and prints it to the console

License:MIT License


Languages

Language:Python 100.0%