Skip to content

Generates some statistics for your Destiny 2 account.

Notifications You must be signed in to change notification settings

insomnial/D2StatGenerator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

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/

How to Use?

  1. Install all required packages
    1. python -m pip install pandas plotly pathos requests pretty_html_table bar-chart-race

    2. 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 the VIDEO_TYPE in main.py to mp4.

      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).

  2. Add your api key to main.py. For this, edit api = BungieApi("API-KEY"). Get it here.
  3. 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")
  4. Run! python3 main.py
    1. May take a while. I need 35~45 seconds for 1000 PGCRs with a download speed of 4.5mb/s.

Where do I get my user ID?

  1. Go to https://www.d2checklist.com (or any other similar page)
  2. Search for your user, open your page
  3. Look at the URL: https://www.d2checklist.com/3/4611686018482684809/milestones In this case, 3 is your MEMBERSHIP_TYPE and 4611686018482684809 is the MEMBERSHIP_ID, so you'll do something like MEMBERSHIP_MIJAGO = (3, 4611686018482684809).

Known Issues

  • 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.

Examples

These examples are from the early stage:

img_4.png img_1.png img_2.png img_3.png fireteam.gif weapons.gif

About

Generates some statistics for your Destiny 2 account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Dockerfile 0.4%