Skip to main content

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


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.4.tar.gz (19.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

SpotifyUtil-0.0.4-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

SpotifyUtil-0.0.4-1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file SpotifyUtil-0.0.4.tar.gz.

File metadata

  • Download URL: SpotifyUtil-0.0.4.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for SpotifyUtil-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b445a1a1c8f718157c40463329f03fa853042a78f888a871f4178a5367ba048d
MD5 fc4814e50b2aef636434dbc2906fd5d2
BLAKE2b-256 dbd0b3d75f007fb49be44587fb8bc4dac6c535328564f6b293c0db166c11152f

See more details on using hashes here.

File details

Details for the file SpotifyUtil-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: SpotifyUtil-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for SpotifyUtil-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c418ba911cc61e33b3db76801283f75665816d8c0012ab508f66157b3f7faf4c
MD5 4853000b3470449df5ae82142475313b
BLAKE2b-256 5684562f6b60895f70191892f22fa17dc047868027bd1d7bbf50eb08b06a0b2e

See more details on using hashes here.

File details

Details for the file SpotifyUtil-0.0.4-1-py3-none-any.whl.

File metadata

  • Download URL: SpotifyUtil-0.0.4-1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for SpotifyUtil-0.0.4-1-py3-none-any.whl
Algorithm Hash digest
SHA256 87f752a03bdcbd34ba95a130ee4b896375ba9c25eb2e5aa7a4ee2af5f8caaf26
MD5 89663196e376698b70eef67853fa29b3
BLAKE2b-256 f10281060c54beea6011c96e9899d2aec0e252ba6de4e3412cd477714e0ebe83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page