Is it allowed to use the API to update a playlist?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello, using python's spotipy, is it allowed to create a script to insert songs in several playlists of my user? and is it also allowed to extract information, such as the number of followers from playlists? I was in doubt and would not want to do anything that would go against the principles
for link in playlist_links:
#
playlist_id = link.split('/')[-1]
playlist = sp.playlist(playlist_id)
#
first_track = playlist['tracks']['items'][0]['track']['id']
sp.playlist_add_items(playlist_id, [first_track], position=0)
#
track_ids = [track['track']['id'] for track in playlist['tracks']['items']]
sp.playlist_remove_specific_occurrences_of_items(playlist_id, [first_track], positions=[1])
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page