https://github.com/bertovdev/spotify_playlist_auto_cleaner
Spotify auto cleaner app based on duration time
https://github.com/bertovdev/spotify_playlist_auto_cleaner
fastapi music python spotify-api
Last synced: about 1 month ago
JSON representation
Spotify auto cleaner app based on duration time
- Host: GitHub
- URL: https://github.com/bertovdev/spotify_playlist_auto_cleaner
- Owner: BertovDev
- Created: 2024-06-25T03:30:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T17:52:04.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T03:29:45.726Z (over 1 year ago)
- Topics: fastapi, music, python, spotify-api
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Spotify playlist auto cleaner
### This app enable you to maintain you playlist cap to a certain duration.
### How to use it
#### Spotify config
- First of all you have to create an spotify app, follow this: https://developer.spotify.com/documentation/web-api
#### Project config
- Start the enviroment ```. .venv/bin/activate```
- Add ```.env``` with you credentials
- ```CLIENT_ID = ""```
- ```CLIENT_SECRET = ""```
- ```REDIRECT_URI = ""```
- ```PLAYLIST_URL = ""```
- Set the var ```TOTAL_ALLOWED_TIME_IN_SECODS``` with the amount of time to cap the playlist in seconds
- Run ```python run.py```. go to the url, authorize the spotify app and copy the code in the URL
- Go to ```http://127.0.0.1:8000/callback?code=``` and paste the code.
- The playlist will delete the amount of tracks necessary to archive the amount of time.
Build this to auto cap my gym playlist to 2hs30min the maximun time of my training session. xD
https://open.spotify.com/playlist/1XyzbkDY4mQrJsEN9L64dm