Skip to content
/ spot-on Public

cli tool for downloading spotify tracks through youtube

Notifications You must be signed in to change notification settings

akuyuu/spot-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spot-on

Cli tool for downloading spotify tracks from youtube
As of now, supports playlist & album downloads
Results may be invalid, make sure to double check downloads(currently works for most genres, although classical music results are bad)

Installation

git clone https://github.com/wdmvv/spot-on
cd spot-on
pip install -r requirements.txt

You will also have to obtain spotify app client id and secret. To do that go to the app creation page and create new app. Upon creating, click "Settings" button, copy client id & client secret and put both into .env file

Usage:

python3.11 main.py [-h] [--type type] [--path path] [--precise] link
  • -h - program help
  • --type - download type, must be either 'album' or 'playlist'
  • --path - specify download path, by default creates 'Downloads' dir in workdir
  • --precise - enable precise search. It will work slower, but results will be as close to the spotify's ones as possible
  • link - spotify playlist/album link, can be either id or link

Examples:

python3.11 main.py --type album --path 'Infinite Hyperdeath' https://open.spotify.com/album/0eoB2aUIfAk7a6JBLwyZSj

- will create folder 'Infinite Hyperdeath' and download album into it

python3.11 main.py --precise https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M

- will create folder 'Downloads' and download playlist filtered by duration into it

TBD

  • Add 403 error workaround (given that I find one)
  • Threads

Known problem(s)

  • Sometimes download may fail with following error: `[download] Got error: HTTP Error 403: Forbidden`. I assume this is related to youtube doing something on their side since it used to work previously, I may find workaround in the future