No description
- Python 100%
| app | ||
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| Verity-starting-shapes.py | ||
What is this?
This downloads all your raid PGCRs (Post Game Carnage Report) from the Bungie.net api and builds some graphs.
Credit for graphs and PGCR collection goes to Mijago (Twitter: https://twitter.com/MijagoCoding/, GitHub: https://github.com/Mijago/). This was forked off their D2StatGenerator project.
How to Use?
-
Install all required packages
python3 -m pip install pandas plotly pathos requests pretty_html_table bar-chart-race tqdm- You should use MP4 instead of GIF, install
python3 -m pip install python-ffmpegand put a ffmpeg in your PATH variable.- You can use GIF but the file size will be generally much larger. Set the
VIDEO_TYPEinmain.pytogif. I highly encourage you to use MP4 as the gifs tend to be 40mb in size whereas the mp4 is only around 1.5mb~2mb.
- You can use GIF but the file size will be generally much larger. Set the
-
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 later.MEMBERSHIP_MIJAGO = (3, 4611686018482684809) MEMBERSHIP_SUPERQ = (3, 4611686018472661350) # for example, add this USED_MEMBERSHIP = MEMBERSHIP_SUPERQ -
Run the script
python3 main.py.- Complete Example:
BUNGIE_API_KEY=123456789012345 python3 main.py -p 3 -id 4611686018472661350 - This may take a while
- Complete Example:
Where do I get my user ID?
- Go to https://www.bungie.net/7/en/Destiny (or any other similar page)
- Search for your user, open your profile page
- Look at the URL:
https://www.bungie.net/7/en/User/Profile/3/4611686018472661350In this case,3is your MEMBERSHIP_TYPE and4611686018472661350is the MEMBERSHIP_ID, so you'll do something likeMEMBERSHIP_SUPERQ = (3, 4611686018472661350).