You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: GETTING_STARTED.md
+22-11
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ You need Python 3.6+. To download songs as MP3, you will need ffmpeg.
7
7
- Linux users can get them by installing libav-tools by using apt-get `sudo apt-get install -y libav-tools`) or a package manager which comes with your distro
8
8
- Windows users can download FFMPEG pre-built binaries from [here](http://ffmpeg.zeranoe.com/builds/). Extract the file using [7-zip](http://7-zip.org/) to a foldrer and [add the folder to your PATH environment variable](http://www.wikihow.com/Install-FFmpeg-on-Windows)
9
9
10
-
1. Install using pip
10
+
1.Install using pip
11
11
12
12
pip3 install spotify_dl
13
13
14
-
2. Login to [Spotify developer console](https://developer.spotify.com/my-applications/#!/applications) and click on "Create an App". Fill in details for name and description
14
+
2.Login to [Spotify developer console](https://developer.spotify.com/my-applications/#!/applications) and click on "Create an App". Fill in details for name and description
15
15
16
-
3. Make a note of Client ID and Client Secret. These values need to be then set `SPOTIPY_CLIENT_ID`, `SPOTIPY_CLIENT_SECRET` environment variables respectively.
16
+
3.Make a note of Client ID and Client Secret. These values need to be then set `SPOTIPY_CLIENT_ID`, `SPOTIPY_CLIENT_SECRET` environment variables respectively.
17
17
18
18
You can set environment variables as mentioned below:
19
19
@@ -37,11 +37,20 @@ You need Python 3.6+. To download songs as MP3, you will need ffmpeg.
37
37
For most users `spotify_dl -l spotify_playlist_link -o download_directory` should do where
38
38
39
39
-`spotify_playlist_link` is a link to Spotify's playlist. You can get it from the 3-dot menu.
40
+
41
+

42
+
43
+
spotify_dl also supports downloading multiple playlist, you can pass them like below:
-`download_directory` is the location where the songs must be downloaded to. If you give a `.` then it will download to the current directory.
40
48
41
-

49
+
5. To retrieve download songs as MP3, you will need to install ffmpeg. If you prefer to skip MP3 conversion, pass `-m` or `--skip_mp3` as a parameter when running the script
50
+
51
+
- Linux users can get them by installing libav-tools by using apt-get (`sudo apt-get install -y libav-tools`) if you'rte using a Debian/Ubuntu or a package manager which comes with your distro
52
+
- Windows users can download FFMPEG pre-built binaries from [here](http://ffmpeg.zeranoe.com/builds/). Extract the file using [7-zip](http://7-zip.org/) to a foldrer and [add the folder to your PATH environment variable](http://www.wikihow.com/Install-FFmpeg-on-Windows)
42
53
43
-
If the Spotify playlist link is skipped then it will download songs from your "My Music" collection
44
-
45
54
-`download_directory` is the location where the songs must be downloaded to. If you give a `.` then it will download to the current directory.
46
55
47
56
6. If you prefer to skip MP3 conversion, pass `-m` or `--skip_mp3` as a parameter when running the script
@@ -51,7 +60,8 @@ You need Python 3.6+. To download songs as MP3, you will need ffmpeg.
51
60
Build the Docker image from the Dockerfile, run the following command in the spotify_dl root directory: `docker build -t spotify_dl .`
52
61
53
62
Run the Docker image with your client ID and secret:
54
-
```bash
63
+
64
+
```bash
55
65
docker run -d --rm \
56
66
-e SPOTIPY_CLIENT_ID=client_id \
57
67
-e SPOTIPY_CLIENT_SECRET=client_secret \
@@ -67,10 +77,11 @@ You can also run the bulk downloading script, make sure to configure it first: `
67
77
### How do I set defaults?
68
78
69
79
You can set defaults per user by creating a file at `~/.spotify_dl_settings`. Create a key with value for every argument you want a default for. Example:
I wanted an easy way to grab the songs present in my library so I can download it & use it offline. [spotify_to_mp3](https://github.com/frosas/spotify-to-mp3) worked well but it relied on grooveshark, which unfortunately is no more. So I wrote this script which mimics that library, but instead of downloading from grooveshark, it searches YouTube and downloads the song using [youtube-dl](https://rg3.github.io/youtube-dl/).
0 commit comments