YLTsai0609 / spotify_lib

using spotify webapi to create some interesting project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Web API

  1. api doc

  2. my app dashboard

Installation

  1. git clone https://github.com/YLTsai0609/spotify_lib.git
  2. cd spotify_lib
  3. python -m venv .venv (python 3.8)
  4. poetry install

Activation Steps

  1. access token (OAuth2.0)
    • login to create app, get client_id, client_secret
    • pick a OAuth flow (scope)
      • I pick applications running on the backend, such as CLIs or daemons, the system authenticates and authorizes the app rather than a user.
      • send a request to spotify server to activate my app.
      • a simple versioned activation log (using csv file)
  2. get access token
    • create a private folder access_token
    • python activate_account.py

Search

input : q = {track_name} output : spotify_id

  1. - search by tracks with query in english
  2. - search by tracks with query in chinese
  3. - search by query = {track, artist} for more precise
  4. - build a operator(input csv, output csv)

Audio Feature

input : spotify_id output : audio feature

Resource

spotipy

About

using spotify webapi to create some interesting project


Languages

Language:Python 100.0%