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.2.tar.gz
(18.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SpotifyUtil-0.0.2.tar.gz.
File metadata
- Download URL: SpotifyUtil-0.0.2.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c1a35cf26f83878d80cffcff9c3db33c99366e85ad7669a185c533e41d78dd0
|
|
| MD5 |
c24c0855c6aab28bcf9bce6dd675d81d
|
|
| BLAKE2b-256 |
aad4696bac2e2b494dc2d3a3148a79a979e1b623d170eb8dbf7845f34610e7a9
|
File details
Details for the file SpotifyUtil-0.0.2-py3-none-any.whl.
File metadata
- Download URL: SpotifyUtil-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f19c5c2d0acb6b03e6d5cc112820db7372ad76df0eaf8dc5170e933de3f008c
|
|
| MD5 |
334a010a9b480e60f008d07b5e7efae2
|
|
| BLAKE2b-256 |
c88bfc12368e8e8c0ac9f95e9cc77715da68d6ea5ac101b1ece1cd6e67379582
|