get tracks of spotify playlists without using the official api
Project description
spotify websapi
Note: This libary can only parse the first 50 songs of a playlist! (spotify web limitations)
No login, no apikey, no apilimit just webparsing
How to use:
import spotify_webapi as sp
playlist_string = "https://open.spotify.com/playlist/0r8WNX8191PI6lHnmwXWPA?"
another_playlist_string = "spotify:playlist:37i9dQZF1DWZeKCadgRdKQ"
song_string = '<iframe src="https://open.spotify.com/embed/track/3PQLYVskjUeRmRIfECsL0X" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>'
print("pulling playlist...")
pl = sp.Playlist(playlist_string)
print("pulling song...")
tr = sp.Track(song_string)
print("init playlist obj without pulling\n")
pl2 = sp.Playlist(another_playlist_string, False)
print(f"songs of {pl.title}")
print(f"third song of the playlist: {pl.tracks[2].title}\n")
print(f"{tr.title} was released on {tr.releasedate}")
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
spotify_webapi-1.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for spotify_webapi-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db6fb74d1627e01a00bc06df27f69e401b92ac47f391e16768add180619433b7 |
|
MD5 | 282cfa14581135ef931e0a37c3b4987f |
|
BLAKE2b-256 | cdb9bdae45fda874ad3fe713133cc8261ac8ad80f9a5d2a43fe7cc8dc89183c8 |