Skip to content

Commit

Permalink
upload 1
Browse files Browse the repository at this point in the history
  • Loading branch information
countervolts authored Mar 8, 2024
1 parent d157954 commit 30d617f
Show file tree
Hide file tree
Showing 7 changed files with 1,042 additions and 0 deletions.
30 changes: 30 additions & 0 deletions old/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Stat Calculator
## How to request your Spotify listening history
1. Go to https://www.spotify.com/ca-en/account/privacy/
2. Login to your spotify account (if needed)
3. Scroll all the way down and click the box for "Extended Streaming History" and "Account Data"
4. then click "Request Data"
5. You should get a email from spotify for a confirmation, just do whatever it says.

## How to use the code
1. run ```git clone https://github.com/countervolts/Spotify-Stats-Calculator```
2. make sure that your "my_spotify_data" folder is in same folder as the stat calculator (should be ```C:\Users\<username>\Spotify-Stats-Calculator```)
3. run ```cd Spotify-Music-Stats-Calculator```
4. run ```pip install -r requirements.txt```
5. run ```python reader.py```
6. when ran it should print "Pick a JSON: " if it says that and the "Streaming_History_music_*.json" json is in the folder press 1
7. allow it to process the streams (this should take a couple seconds)
8. when done it will print your top 10 artists as well as you top 10 songs, if you type "n" to writing a stats.txt file it will contain 50 artists and 50 songs and save in the same directory, type y to customize how much artists/songs you want in the stats.txt file.

## Examples
1. [command prompt output](https://github.com/countervolts/Spotify-Stats-Calculator/blob/main/examples/CommandPromptOutput.txt)
2. [full stats.txt output](https://github.com/countervolts/Spotify-Stats-Calculator/blob/main/examples/Stats.txt)

## Support / Suggestions
my discord is [._ayo](https://discord.com/users/488368000055902228) <--- or just click the link

## **DISCLAIMER**
not 100% the same as apple music stat calculator,
1. For cmd output top 10 songs doesnt show artist name,
2. doesnt include features from other artists towards their own hours listened
3. doesnt seem to read all "Streaming_History_music_*.json" files, only the 1 inputted <- bug will be fixed
47 changes: 47 additions & 0 deletions old/examples/CommandPromptOutput.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Total streams: 10,000
Total minutes streamed: 20,126.07
Total hours streamed: 335.4
Different tracks: 1,410
Different artists: 656

Top 10 Most Streamed Artists:
------------------------------
1. "$uicideboy$" - 61.5 hours (3,690.00 minutes)
2. "Kanye West" - 59.8 hours (3,588.00 minutes)
3. "$NOT" - 52.0 hours (3,120.00 minutes)
4. "Tyler, The Creator" - 10.8 hours (648.00 minutes)
5. "Playboi Carti" - 9.8 hours (588.00 minutes)
6. "Joey Bada$$" - 9.3 hours (558.00 minutes)
7. "halberd" - 8.9 hours (534.00 minutes)
8. "Kudasaibeats" - 6.4 hours (384.00 minutes)
9. "Baby Keem" - 6.0 hours (360.00 minutes)
10. "Ken Carson" - 5.8 hours (348.00 minutes)

Top 10 Most Streamed Tracks:
------------------------------
1. "Runaway" - 6.0 hours (360.00 minutes)
2. "I Wonder" - 4.9 hours (294.00 minutes)
3. "Whole Lotta Grey" - 4.9 hours (294.00 minutes)
4. "No More Parties In LA" - 4.3 hours (258.00 minutes)
5. "Devil In A New Dress" - 4.0 hours (240.00 minutes)
6. "Show Me" - 3.9 hours (234.00 minutes)
7. "Gorgeous" - 3.8 hours (228.00 minutes)
8. "The Number You Have Dialed Is Not in Service" - 3.8 hours (228.00 minutes)
9. "Immaculate" - 3.3 hours (198.00 minutes)
10. "Ghost Town" - 3.2 hours (192.00 minutes)

Would you like to customize Stats.txt? (Auto generation includes the top 50 songs and artists) (y/n): y


/----------------------------------------------------------------------------------------------------------------------------\
| EVERYTHING BELOW HERE WIL BE CHANGED FOR YOU (if "n" is typed when asked to customize it will auto generate top 50) |
\----------------------------------------------------------------------------------------------------------------------------/

How many artists would you like to include? (Max: 619): 60

How many songs would you like to include? (Max: 1779): 60

Stats.txt successfully written to <file directory> <- this will the be the file dir (dif for all)

It contains the following:
60 artists and 60 songs
Empty file added old/examples/ReadMeFirst.txt
Empty file.
Loading

0 comments on commit 30d617f

Please sign in to comment.