Skip to main content

Downloads songs from Spotify using YouTube!

Project description

Open Spotify Downloader

This repo is a simple script that uses public APIs of Spotify and YouTube to retrieve Spotify musics from YouTube.
The whole idea I borrowed from this repo, but it uses official APIs of YouTube and Spotify which incurs some restriction (like search limit in YouTube API). So I decided to implement it using public, ananymous APIs of those websites.

We are using youtube-dl package to download youtube videos and ffmpeg to convert them to mp3, make sure to download them correctly.
If you got problems with ffmpeg, provide ffmpeg path with FFMPEG_PATH environment variable.

Install requirements

You need to have ffmpeg installed in your system with the flag of limemp3.
And install the following requirements:

pip install -r requirements.txt

Usage

  1. Download a playlist or album: Copy the spotify URL
$ open_spotify_dl --url URL_PATH

If you want to store the songs in a custom directory give it as an argument to

$ open_spotify_dl --url URL_PATH --root_path

By default, for the sake of speed and resumeness, open spotify downloader youtube search is performed once and sotored in track_lists.json, but if you want to perform the search again you can force it by --force_search

Issues and Contact

Please raise bugs/issues under Github issues if you faced any trouble. I am on twitter at @e3oroush or you can email me at ebrahim.soroush@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_spotify_dl-1.0.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file open_spotify_dl-1.0.0.tar.gz.

File metadata

  • Download URL: open_spotify_dl-1.0.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.3

File hashes

Hashes for open_spotify_dl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 20677a9c233df102add815758a1782af5e135ae32c7fb6275b724232307ecc64
MD5 0a9e64d332ba98b8635da63e9a52a98e
BLAKE2b-256 50acf00f46b7d39c917b4d086c3b87a42a5442d174e34f3f96589e63794c700e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page