SpotifyUtils is a very useful library made over Spotipy to automate some rather tiring tasks.
Project description
SpotifyUtil
SpotifyUtils is a very useful library made over Spotipy to automate some rather tiring tasks.
Features
- Add songs to a playlist/album (creates one if name is provided instead of playlist url)
- Add songs to a playlist/album from a text file if it has the tracks' name and artist ("Name - Artist" format) in a newline separated way.
- Removes duplicates while adding songs if the flag is set to true.
- Creates a playlist out of your liked songs
- Create a playlist out of all the unavailable songs present in your playlist. Can also avoid unavailable songs while creating a new playlist.
Usage
from SpotifyUtil import SpotifyUtil
os.environ["SPOTIPY_CLIENT_ID"] = "Your Spotify Client ID"
os.environ["SPOTIPY_CLIENT_SECRET"] = "Your Spotify Client Secret"
os.environ["SPOTIPY_REDIRECT_URI"] = "Your Spotify Redirect URI"
sp = SpotifyUtil()
sp.add_liked_songs_to_playlist(name="Test Liked songs", limit=20)
or
from SpotifyUtil import SpotifyUtil
sp = SpotifyUtil(
spotify_client_id="Your Spotify Client ID",
spotify_client_secret="Your Spotify Client Secret",
spotify_redirect_uri="Your Spotify Redirect URI"
)
sp.add_liked_songs_to_playlist(name="Test Liked songs", limit=20)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SpotifyUtil-0.0.10.tar.gz
(20.0 kB
view hashes)
Built Distribution
Close
Hashes for SpotifyUtil-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f493c0a131e0e0bf2584f58501b38df6e3cd4a58336af705d768e1fb9eea12e3 |
|
MD5 | 8d00c63a9b53cbb879d8b2fcd9aa3735 |
|
BLAKE2b-256 | 1f950addbc45fa330964cd32ece26b74cb601fe6fbff421ef73ce1ca70355230 |