Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Spotify Playlist
#1
Hi everyone,



first of all I must say I'm NOT a Python expert. In reality, I've never even used Python, but I know that it is a super powerful tool, useful in many contexts, also in Spotify.

2nd disclaimer: English is not my first language so I'll try to explain what I want to ask in the best way possible.

So, this is my problem:



I am a playlist curator on Spotify, with more than 50.000 followers over all through out all my playlist.

Lately, people started falsely reporting playlists on Spotify to gain a better rank in Spotify search algorithm. (if you search on the web, you will find that is becoming more and more common)

Each time a playlist is reported, the title, description and image disappear BEFORE the Spotify team check if the report is actually true or not. You will understand that this leads to a MASSIVE abuse of this tool, you just need to fill a form with name, telephone number and email and you can make this report. Obviously, people are filling this form with fake mails and identities.

This means that a fraudulent user can report your playlist 10000000 times a day, and there is nothing you can do against it, because if Spotify bans his fake "mail" he will fill the form with another fake email. This also means that if the reporter flag my playlist 10.000 times, I have to rewrite title, caption and upload user 10.000 times, and it is absolutely absurd. I sent hundreds of mail to the spotify team, they told me they are working to fix it, but currently there is no way to stop this (THIS IS CRAZY!)



So my question is: is there a way to create a code with Python, that auto rewrite the title of a playlist each time Python sees the title has disappeared?



For example:

The reporter reports my playlist --> Title, Description and Image are gone (until I don't rewrite them again)

Python notices that the title is gone and automatically rewrite the title and caption



Do you think this is possible?



I am willing to pay for someone making this code for me, because these fake reports are becoming more and more frequent, and as a music blogger, Spotify Playlists are a part of my income. I can't stay 24/7 at home rewriting the titles of my falsely reported playlist (with no reason)



Hope this was clear enough, thank you!
Reply
#2
Have you thought about using the spotify api?
Something like this might be a good place to start: https://github.com/plamere/spotipy
I'm sure there's many youtube videos about how to get things like your client secret. The github page links the spotify api documentation so I would recommend looking there as well.
Reply
#3
Hey DreamingInsanity, thank you for your reply!

I checked the attached link, but as I said before, I'm a complete noob with Python and Spotify API, i just know what they are but I can't use them.

I tried searching on the internet, but I think this is a rather specific situation so there is nothing on YouTube..

Do you think it is possible to code something similar to what I requested?
Reply
#4
(May-31-2020, 05:24 PM)Benji1995 Wrote: Hey DreamingInsanity, thank you for your reply!

I checked the attached link, but as I said before, I'm a complete noob with Python and Spotify API, i just know what they are but I can't use them.

I tried searching on the internet, but I think this is a rather specific situation so there is nothing on YouTube..

Do you think it is possible to code something similar to what I requested?
Technically it's against the rules but you know, I was bored so I did:
CLIENT_ID = ""
CLIENT_SECRET = ""

PLAYLIST_ID = ""
USERNAME = ""
PLAYLIST_NAME = ""

import spotipy
import spotipy.util as util

token = util.prompt_for_user_token(USERNAME, "playlist-modify-public", CLIENT_ID, CLIENT_SECRET, "https://example.com/callback")
sp = spotipy.Spotify(auth=token)

playlists = sp.user_playlist_change_details(USERNAME, playlist_id=PLAYLIST_ID, name=PLAYLIST_NAME, public=True)
Firstly, you need to run: pip install spotipy
Then, go to: https://developer.spotify.com/dashboard/ and sign in. Click on 'create a new app' and follow the steps. Once you are done, copy the client id into 'CLIENT_ID' and the client secret into 'CLIENT SECRET' (don't share these with anyone)
Next, open spotify, right click your playlist, go to 'share' and then 'copy spotify URI'. Delete everything that is 'spotify:playlist:'. Take what's left and put it in 'PLAYLIST_ID',
Fill out 'USERNAME' with your spotify username.
'PLAYLIST_NAME' is what you want you playlist to be named.

Now run the script. It should open your browser and ask you for a url. Click the button to authorise the app. Once you have been redirected, copy the url and paste it into where it wants you to. Once you have done this it should have renamed your playlist.
It's a bit long to have it open up your browser but it doesn't seem like there's much I can do about it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mute spotify by the mixer of volume garze23 0 223 Feb-27-2024, 05:42 PM
Last Post: garze23

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020