yogeshwaran01/update-my-spotify-playlist ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python tool that keeps a Spotify playlist fresh automatically.
I want it to connect to Spotify with the web API, pull in tracks based on my favorite artists and genres, and update one or more playlists for me on a schedule. It should support a few simple modes like top artists, top tracks, recently played, a mixed mode that combines them, and a custom mix where I can choose artists, genres, and tracks. I also want to be able to set the playlist id and the update rules in a config file, then store the Spotify login details in environment variables.
Please include a script to help me get the refresh token the first time, and make it easy to test locally before automating it. It should also be ready to run from GitHub Actions every day, with a workflow I can tweak if I want a different time. If you need current Spotify or GitHub Actions details, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit