SpotWeekly
Automate saving your Discover Weekly Playlist using Python. Made with <3 and FastAPI.
The saved playlist link is sent to my discord server via a webhook.
Installation
Clone this repository.
git clone https://github.com/shouryade/SpotWeekly
This project uses pipenv
to create a virtual environment.
pip install pipenv
Activate and install dependencies using pipenv.
cd SpotWeekly
pipenv sync
For venv
enthusiasts, I have provided a requirements.txt
file to help install project dependencies.
Rename the env.example
file to .env
.
Setup
Registering Your Spotify App on Spotify for Developers
Setting up webhook for Discord
Usage
To get the playlist ID for your Discover Weekly, copy the link for the playlist.
The highlighted portion as shown in the image is the Spotify Playlist ID.
Extract the ID and paste it onto the .env
file.
Fill the remaining details in the .env
file.
Run app.py
and copy the token supplied. Run main.py
and supply the parameters asked.
Check Discord once Successfully created playlist !
is printed on screen.
Roadmap
[ ] Create Docker instance.
[ ] Run this as a cron job using Github Workflows.
[ ] Create a bash script for a cron job if locally deployed.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.