Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-webapi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-webapi

get tracks of spotify playlists without using the official api

  • 1.0.3
  • PyPI
  • Socket score

Maintainers
1

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}")

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc