Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

finedk/spotify-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify-data-parser

Simple Spotify parser on spotify link

Distributed by MIT correspondence

Content

Appointment

This script can parse data on the spotify link. This can help those who need to copy the name of the song or the author in the application, but can't do it. You just need to put a link in the script and it will give a list of track data (in the terminal or in txt). It also gives a link to the image of the track (album) in high resolution, and a full https:// link to this track!

Example

  • Sample data you get
Full name: Fashion Week - cry, Blackbear gg
Name: Fashion Week
Author: cry, Blackbear gg
Preview: https://i.scdn.co/image/ab67616d0000b273d33e9719ece26fe8dfd477a1
Track url: https://open.spotify.com/track/2lbv1Xcy06X4a0jRwlGgo1

Track image (Preview) in 640x640 resolution

You can find more the images and gif in the for_readme folder in the repository

Animated process

example

Installation

  • git clone https://github.com/alekszavg/spotify-parser.git

  • cd spotify-parser

  • pip install -r requirements.txt

  • Create .env

  • Then open .env file and paste your spotify_client_id and spotify_client_secret (get-this-data)

    spotify_client_id = fa9bede2000000f15ab9d8ea000000
    spotify_client_secret = 74c6f0000045b5818a00000
    
  • python main.py

Technical information

  • The spotipy library was used
  • The script uses environment variables
  • To use this script, you need a client id and client secret. You can get them at this link. You need to create your own application and take these variables

From the author

Written in a hurry, mistakes are possible! During processing, lists with the received data appear, they can be taken from the class functions (this is if you will use these developments)

Good luck to everyone and goodbye!