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

Uploaded Source

Built Distribution

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

SpotifyUtil-0.0.0.6-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SpotifyUtil-0.0.0.6.tar.gz
  • Upload date:
  • Size: 20.2 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.0.6.tar.gz
Algorithm Hash digest
SHA256 13bc3e14809f40fd038fe0c22433be181b6498bc09589274ad115c2d76f76e8f
MD5 74e0f748dabb6c080c023e6aff33259c
BLAKE2b-256 6c2a775c45384f5c4461594ff7eae0ebfdf1064675e70f3800f1d0f781278d50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SpotifyUtil-0.0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b70b8e62709e194845f66e9a5b3b5c820457aefc52e0d6d0d060ee80775d545c
MD5 6fe8438f322bf0a0d2c8f54e9aa7d6e9
BLAKE2b-256 471864e15be96f04f9179f09a09525edec4c0e187022e99f16f2c18bf0e4e9c1

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