https://github.com/e3oroush/open-spotify-dl
Downloads songs from Spotify using YouTube!
https://github.com/e3oroush/open-spotify-dl
Last synced: about 2 months ago
JSON representation
Downloads songs from Spotify using YouTube!
- Host: GitHub
- URL: https://github.com/e3oroush/open-spotify-dl
- Owner: e3oroush
- License: mit
- Created: 2020-04-24T00:34:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T20:54:28.000Z (over 3 years ago)
- Last Synced: 2025-03-10T11:04:26.945Z (2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://github.com/SathyaBhat/spotify-dl/), 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:
```bash
pip install -r requirements.txt
```## Usage
1. Download a playlist or album: Copy the spotify URL
```bash
$ open_spotify_dl --url URL_PATH
```
If you want to store the songs in a custom directory give it as an argument to
```bash
$ 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](https://twitter.com/e3oroush) or you can email me at [[email protected]](mailto:[email protected])