This downloads all your PGCRs (Post Game Carnage Report) from the Bungie.net api and builds some graphs. If you find a bug when you run it locally, feel free to open an issue and I'll look at it - I don't really give support for this, though. I'll add some more charts over time!
Make sure to post your cool charts on Twitter and to mention me on them! I'd love to see what all of you get to see! My Twitter: https://twitter.com/MijagoCoding/
- Install all required packages
-
python3 -m pip install pandas plotly pathos requests pretty_html_table bar-chart-race tqdm -
If you want to use mp4 instead of gif, also install
python3 -m pip install python-ffmpegand put a ffmpeg in your PATH variable. Then set theVIDEO_TYPEinmain.pytomp4.I highly encourage you to do this, as the gifs tend to be 40mb in size, whereas the mp4 is only around 1.5mb~2mb.
Download it here: ffmpeg (for Windows,
ffmpeg-n5.0-latest-win64-gpl-5.0.zip).
-
- 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_MYCOOLID = (1, 1231231231231233353) # for example, add this USED_MEMBERSHIP = MEMBERSHIP_MYCOOLID
- Run the script
python3 main.py.- Complete Example:
BUNGIE_API_KEY=123456789012345 python3 main.py -p 3 -id 4611686018482684809 - Alternatively you can also specify the platform and user:
python3 main.py -p 3 -id 4611686018482684809 - This may take a while. I need 35~45 seconds for 1000 PGCRs with a download speed of 4.5mb/s.
- Complete Example:
- Go to https://www.d2checklist.com (or any other similar page)
- Search for your user, open your page
- Look at the URL:
https://www.d2checklist.com/3/4611686018482684809/milestonesIn this case,3is your MEMBERSHIP_TYPE and4611686018482684809is the MEMBERSHIP_ID, so you'll do something likeMEMBERSHIP_MIJAGO = (3, 4611686018482684809).
- Sometimes the PGCR-Download is stuck. This is an issue with the threading library. Just restart the whole script. This is not a big issue as it continues where it stopped.
These examples are from the early stage:





