https://github.com/ashish0kumar/spotify-stats
ðķA script written in Python to get your Spotify stats
https://github.com/ashish0kumar/spotify-stats
music python python-script spotify spotify-stats
Last synced: about 1 year ago
JSON representation
ðķA script written in Python to get your Spotify stats
- Host: GitHub
- URL: https://github.com/ashish0kumar/spotify-stats
- Owner: ashish0kumar
- License: mit
- Created: 2024-05-31T10:38:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-08T14:42:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-15T05:39:53.467Z (about 1 year ago)
- Topics: music, python, python-script, spotify, spotify-stats
- Language: Python
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ðĩ Spotify-stats
A script written in Python to get your Spotify stats

## âĻ Features
Displays:
- currently playing song at the top with a distinctive color.
- top 5 artists based on listening history.
- top 5 songs you've listened to recently.
- top 5 albums.
- top 5 songs you've recently played.
## âïļ Requirements
- Python 3.x
- `spotipy` library (install it via `pip install spotipy`)
- `colorama` library (install it via `pip install colorama`)
- `pyfiglet` library (install it via `pip install pyfiglet`)
## ð Usage
1. Clone this repository.
```bash
git clone https://github.com/ashish0kumar/Spotify-stats.git
```
2. Install the dependencies
```bash
pip install -r requirements.txt
```
3. Configure Spotify API credentials:
Create a Spotify App on the Spotify Developer Dashboard.
Obtain your `CLIENT_ID` and `CLIENT_SECRET.`
Set the `REDIRECT_URI` to http://localhost:5173/callback/ (you can set it to any URL you want to but you'll have to edit `REDIRECT_URI` in the script as well to match it) in your Spotify App settings.
5. Update stats.py: Replace the placeholders in the get_spotify_stats function with your `CLIENT_ID` and `CLIENT_SECRET`.
6. You can now run the stats.py script to get the stats.
```bash
python stats.py
```
## ð License
This project is licensed under the MIT License.