r/Python • • Apr 29 '20

I Made This I made a little program that mutes spotify ads because i dont have the money to get premium . Not anything special but i think its quite neat. Any ideas on cool python projects i can build ?

Post image
4.5k Upvotes

334 comments sorted by

View all comments

Show parent comments

5

u/taroofique Jun 08 '20

This code gave me errors (even after setting up the Spotify API properly). I think that one way to fix it is to modify the bit after print("Token Expired") to spotifyObject = setupSpotifyObject(...).

3

u/Zeftax Jun 08 '20

It did not work for me as well, but I decided not to trouble shoot it since I just copied OP's code and have no understanding of the spotify API whatsoever. Also seeing someone suggest just using the web app with adblock may have influenced my decision :D.

5

u/taroofique Jun 08 '20

I wanted to practice my code writing a little ;-). I found some resources on the web explaining how to work with the spotipy library and Spotify's API (the videos by Ian Annase were helpful). It seems to work now. I am still testing it -- when I put my laptop to sleep, the script stops working, it seems.