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
-
python -m pip install pandas plotly pathos requests pretty_html_table bar-chart-race
-
If you want to use mp4 instead of gif, also install
python -m pip install python-ffmpeg
and put a ffmpeg in your PATH variable. Then set theVIDEO_TYPE
inmain.py
tomp4
.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
).
-
- Add your api key to
main.py
. For this, editapi = BungieApi("API-KEY")
. Get it here. - Edit your user info in
main.py
.MEMBERSHIP_MIJAGO = (3, 4611686018482684809) MEMBERSHIP_MYCOOLID = (1, 1231231231231233353) # for example, add this USED_MEMBERSHIP = MEMBERSHIP_MYCOOLID api = BungieApi("API-KEY")
- Run!
python3 main.py
- May take a while. I need 35~45 seconds for 1000 PGCRs with a download speed of 4.5mb/s.
- 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/milestones
In this case,3
is your MEMBERSHIP_TYPE and4611686018482684809
is 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: