![]() ![]() Since this token expires after one hour, a new one will usually have to be generated. When the script starts, it first checks the authority of its current access token. ![]() The most recently acquired Spotify access token, the script's Spotify refresh token, and a Base64-encoded string containing my "app's" client ID and secret are stored in a local SQLite table called tokens (I've excluded this database from the repository because these tokens provide read and write access to my Spotify account).I used Windows Task Scheduler to regulate the script to run every morning at 10:00 AM on my computer. This script was written for personal use, so the playlist creation is authorized by an access token retreived for my Spotify account. Spotify Playlist Generator is a Python script that automatically builds a new Spotify playlist each week with new music. Shoutout to MyBridge for listing this project as one of the Top 10 Python Open Source Projects of June 2018! ![]()
0 Comments
Leave a Reply. |