No description
- Python 99.9%
- Shell 0.1%
| app | ||
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| superQ.sh | ||
What is this?
- Given a clan ID get all members, get all Onslaught PGCRs, and calculate basic stats for individual members:
- total runs
- total legend runs
- total normal runs
- successful legend runs
- successful normal runs
- success percent
- kills
- deaths
- assists
- score
- duration
How to use?
- Install all required packages
python3 -m pip install pandas plotly pathos requests pretty_html_table bar-chart-race tqdm prettytable
- Set your API key as an environemnt variable
BUNGIE_API_KEY. Get the key here.- Alternatively: Add your api key to
main.py. For this, edit# API_KEY = "123456789".
- Alternatively: Add your api key to
- Edit your user info in
main.py. Alternatively, you can also use command line parameters to set this.# Manually set clan ID here CLAN_ID = 881267 # Manually set clan ID CLAN_ID = 881267 # Manually set user ID PLATFORM_ID = 3 MEMBER_ID = 4611686018472661350 - Run the script
python3 main.py.- Complete example for clans:
BUNGIE_API_KEY=123456789012345 python3 main.py -c 174643 - Complete example for individual user:
BUNGIE_API_KEY=123456789012345 python3 main.py -p 2 -m 4611686018470531562 - Alternatively you can also specify just the script if you set variables manually:
python3 main.py
- Complete example for clans:
Where do I get my clan ID?
- Go to https://www.bungie.net/7/en (or any other similar page)
- Search for your clan
- Open your profile, open your clan page
- Search for clan by name directly
- Look at the URL:
https://www.bungie.net/7/en/Clan/Profile/174643In this case,174643is your clan ID