Giter Club home page Giter Club logo

spotify-dl's Introduction

GitHub license GitHub license GitHub license GitHub license

spotify-dl

a script that allows you to download spotify songs or playlists , written in python

This README would normally document whatever steps are necessary to get spotify-dl up and running.

What is this repository for?

  • spotify-dl allows you to download spotify songs or playlist
  • Version 0.0.2
  • This repo contains spotify-dl source code

Screen

alt text

How to Install ?

to use spotify-dl , you need to install thoses packages :

  • bs4
  • youtube-dl

MAC OSx

you can use brew to install youtube-dl :

$ brew install youtube-dl

and pip to install bs4

$ pip install beautifulsoup4

Linux (debian)

use apt-get install to install youtube-dl

$ sudo apt-get install youtube-dl

and pip to install bs4

$ pip install beautifulsoup4

How to use ?

you can either use your spotify account or downloading single track or playlist by providing an ID , ex:

$ ./spotify-dl --track {spotify_song_id} --dl youtube

this will download the track and save it as mp3 format

you can get the song ID by getting the spotify URI of the song

{spotify_song_id_ex} : 28Ct4qwkQXY2W5yyNCLuVI

Spotify API

The new version of the spotify api require an access_token for requests, you can check out https://developer.spotify.com/migration-guide-for-unauthenticated-web-api-calls/.

the new patch of spotify-dl have a new argument called: --access_token , so the new usage of spotify-dl would be:

$ ./spotify-dl --track {spotify_song_id} --dl youtube --access_token <your_access_token>

you can get the access token from the url generated while executing :

$ ./spotify-dl --gen_url 

you also have to create an application on https://developer.spotify.com/

change:

CLIENT_ID=""
CALL_BACK_URL=""

Contributors

  • Hamza Bourrahim

spotify-dl's People

Contributors

invicnaper avatar

Stargazers

Arsalan Sefidgar avatar

Watchers

MohammadAmin Vahedinia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.