Skip to main content

Spotify Lyrics Grabber

This Spotify Lyrics Grabber is a tool to grab Spotify Lyrics of any song, not just the one you are listening to.

Table of Contents

Installation

To install, run pip install spotify-lyrics-scraper in your command prompt. To import it, I recommend import spotify_lyrics_scraper as spotify

Obtaining

To obtain the sp_dc or sp_key:

  • Open a new Incognito Window in your browser. Head to https://accounts.spotify.com/en/login?continue=https:%2F%2Fopen.spotify.com%2F
  • Open Developer Tools (CTRL+SHIFT+I or F12) and head to the "Network" tab and make sure it is recording.
  • Login to Spotify.
  • Search/Filter for fraud or ?flow_ctx or masthead in the "Network" tab. (some of these may be patched, try others)
  • Under cookies for the request, you will see "sp_dc" and "sp_key".
  • Close the window WITHOUT LOGGING OUT (else said cookies will be made invalid).

Examples

Always using: import spotify_lyrics_scraper as spotify

Example 1
token = spotify.getToken("SP_DC Here")
print(spotify.getLyrics(token, songName="Song"))
Example 2 (Proxies)
token = spotify.getToken("SP_DC Here")
print(spotify.getLyrics(token, songName="Song", proxies={"https": "https://1.1.1.1:443"}))
Example 3 (Formatting)
token = spotify.getToken("SP_DC Here")
lyrics = spotify.getLyrics(token, songName="Song")
if type(lyrics) == spotify.spotifyDict: print(lyrics.formatLyrics()) # there are several modes, 0/none is just lyrics, 1 is starting time in ms, 2 is starting time in seconds
else: print(f"Error: {lyrics}")
Example 4 (sp_key)
token = spotify.getToken("SP_DC Here", "SP_Key Here") #SP Key can give you up to a year worth of spotify tokens.
print(spotify.getLyrics(token, songName="Song"))

Metadata

Release files for spotify-lyrics-scraper 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotify-lyrics-scraper 1.2.2
File Size Uploaded Provenance Actions
spotify_lyrics_scraper-1.2.2.tar.gz 4.4 kB Without provenance Details for spotify_lyrics_scraper-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spotify-lyrics-scraper 1.2.2
File Interpreter ABI Platform Actions
spotify_lyrics_scraper-1.2.2-py3-none-any.whl Python 3 none any Details for spotify_lyrics_scraper-1.2.2-py3-none-any.whl

Total release size: 9.5 kB

Release files / spotify_lyrics_scraper-1.2.2.tar.gz

Download URL spotify_lyrics_scraper-1.2.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4e64ba8e0dfb2b4cf915aacf529a10f56ab0bc553e78de94b94a7f83dbd7b4d
BLAKE2b-256 checksum
How to use checksums
a96b1a1d993f8002903f5e94b23f24b03b34f62dddbda7158c204cb0ae7b669f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / spotify_lyrics_scraper-1.2.2-py3-none-any.whl

Download URL spotify_lyrics_scraper-1.2.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfbc8a4e0ce9c14a68ab380bfabec215c0beb63c3c29bbb702dbbdf20f02c0f7
BLAKE2b-256 checksum
How to use checksums
6f5de2c4a46c09a6a36e89e354db73c4221d57c6b61b5a6eb65f15285224e920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for spotify-lyrics-scraper 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page