Skip to main content

Simple access the Spotify WEB API for general requests about artists, albums or songs

Project description

# Spotify-Wrapper Easy-Spotify is a python Wrapper for the Spotify Web API. It was conceived with ease of use in mind. It allows you to retrieve data from Spotify such as track or artist information, images, related artists, top tracks, and more.

## Documentation Install the package as usual.

~~~bash pip install easy-spotify ~~~

To be able to access Spotify Web API you need to provide easy-spotify with your <code>client_id</code> and <code>client_secret</code> which you can obtain [here](https://developer.spotify.com/dashboard/).

~~~python from easy_spotify import Spotify

spotify = Spotify(MY_CLIENT_ID, MY_CLIENT_SECRET) ~~~

##### Get Artist or Track ID Search for an artist or track in Spotify’s catalogue and get back the top results. ~~~python my_artist_id = spotify.get_artist_id(“Adele”, only_id=False)

my_track_id = spotify.get_track_id(“Starboy”) multiple_tracks_id = spotify.get_multiple_track_id([“Starboy”], [“Hello”], [“Cake By The Ocean”]) ~~~

##### Artist related methods ~~~python artist_info_name = spotify.get_artist_info_from_name(“Adele”) artist_info_id = spotify.get_artist_info_from_id(“ARTIST_ID”)

my_albums_name = spotify.get_albums_from_name(“Adele”) my_albums_id = spotify.get_albums_from_id(“ARTIST_ID”)

top_tracks_name = spotify.get_artist_top_tracks_from_name(“Adele”, just_id_and_name=False) top_tracks_id = spotify.get_artist_top_tracks_from_id(“ARTIST_ID”, just_id_and_name=True)

related_artists = spotify.get_related_artists(“ARTIST_ID”) ~~~

##### Track related methods ~~~python track_features = spotify.get_track_audio_features(“TRACK_ID”) multiple_track_features = spotify.get_multiple_tracks_audio_features([“TRACK_ID”, “TRACK_ID”, “TRACK_ID”])

track_info = spotify.get_track_info(“TRACK_ID”) multiple_track_info = spotify.get_multiple_tracks_info([“TRACK_ID”, “TRACK_ID”, “TRACK_ID”]) ~~~

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

easy_spotify-v0.3.4-alpha.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file easy_spotify-v0.3.4-alpha.tar.gz.

File metadata

  • Download URL: easy_spotify-v0.3.4-alpha.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for easy_spotify-v0.3.4-alpha.tar.gz
Algorithm Hash digest
SHA256 ac500f51d7e2b8d1eae4ea1e3c485d879f1fc63f74544a307128a25538b868c7
MD5 268bb39180a295c439d254177775899d
BLAKE2b-256 c820fe014889f336a801c4d2a0a6a770d30450e3d5b56bc16a655b7417e74074

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