spotify-dlp


Namespotify-dlp JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://github.com/zWolfrost/spotify-dlp
SummaryCommand line downloader for spotify tracks, playlists, albums and top artists tracks.
upload_time2024-05-05 20:23:20
maintainerNone
docs_urlNone
authorzWolfrost
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # spotify-dlp
[![PyPI version](https://img.shields.io/pypi/v/spotify-dlp)](https://pypi.org/project/spotify-dlp/)
[![PyPI downloads](https://img.shields.io/pypi/dm/spotify-dlp)](https://pypi.org/project/spotify-dlp/)
[![GitHub license](https://img.shields.io/github/license/zWolfrost/spotify-dlp)](LICENSE)

Command line downloader for spotify tracks, playlists, albums and top artists tracks.
It works by taking the metadata out of these items using the Spotify API and searching them up on youtube.
Then, it downloads the result by using yt-dlp.


 
## Installation
1. After having installed [Python 3](https://www.python.org/downloads/) with pip, you can install spotify-dlp using the following command:
	```bash
	pip install spotify-dlp
	```

2. Then, login to [Spotify developer console](https://developer.spotify.com/dashboard) and click on "Create an App". Fill in details for name and description.

3. Make a note of Client ID and Client Secret. These values need to be then set to the `SPOTIFY_DLP_CLIENT_ID` and `SPOTIFY_DLP_CLIENT_SECRET` environment variables respectively

	Alternatively, you can also include them in a `.env` file in the working directory, or even directly pass them as arguments.

	You can set environment variables by doing the following:

	Windows (run in cmd as administrator):
	```cmd
	setx SPOTIFY_DLP_CLIENT_ID "your_client_id"
	```
	```cmd
	setx SPOTIFY_DLP_CLIENT_SECRET "your_client_secret"
	```

	Linux (add to `~/.bashrc`):
	```bash
	export SPOTIFY_DLP_CLIENT_ID="your_client_id"
	export SPOTIFY_DLP_CLIENT_SECRET="your_client_secret"
	```

4. You can now use the script by running `spotify-dlp` in the command line.
	Also, ffmpeg is required if you wish to convert the m4a codec to another one using the `-c` argument.


 
## Arguments
| Command                | Example      | Description
|:-:                     |:-:           |:-
|                        | "kon queso"  | The words to search up<br>or a link to a spotify album, artist, playlist or track.
| `-i` `--client-id`     | "qwertyuiop" | The Spotify Client ID*.
| `-s` `--client-secret` | "asdfghjkl"  | The Spotify Client Secret*.
| `-f` `--format`        | "{name} - {authors} ({album})" | The format of the downloaded tracks' names<br>(`--help` to show available fields).
| `-t` `--type`          | "track"      | When searching up a query, the specified type of content.
| `-o` `--output`        | "./album/"   | The output path of the downloaded tracks.
| `-c` `--codec`         | "m4a"        | The audio codec of the downloaded tracks.
| `-y` `--yes`           |              | Whether to skip the confirmation prompt.
| `-l` `--slice`         | "2:6"        | The beginning and ending index of the list items to download<br>separated by a colon ":" (1-based).<br>Either one of those indexes can be omitted.
| `-v` `--verbose`       |              | Whether to display verbose information.
| `--help`               |              | Show the help message and exit.

*Required if not already found in the environment variables or in the working directory `.env` file.


&nbsp;
## Use Examples
```
spotify-dlp kon queso mf doom
```
```
spotify-dlp mm food -t album -o "%userprofile%\Desktop" -a mp3 -c
```
```
spotify-dlp https://open.spotify.com/album/1UcS2nqUhxrZjrBZ3tHk2N -i "your_client_id" -s "your_client_secret"
```


&nbsp;
## Screenshots
![Downloading album](https://i.imgur.com/5A51fah.png)


&nbsp;
## Changelog
*This changelog only includes changes that are worth mentioning.*

- **2.0.0**:
<br>- Basically, everything changed. Also added package to PyPI.
	- **2.0.1**:
	<br>- Fixed `--verbose` argument not working.
	<br>- Made youtube search more accurate.
	<br>- Better error handling.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zWolfrost/spotify-dlp",
    "name": "spotify-dlp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "zWolfrost",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a1/cd/30e81db67cdb1ed6c10601b868f35cde945514557179cc76fe9201862a23/spotify-dlp-2.0.1.tar.gz",
    "platform": null,
    "description": "# spotify-dlp\n[![PyPI version](https://img.shields.io/pypi/v/spotify-dlp)](https://pypi.org/project/spotify-dlp/)\n[![PyPI downloads](https://img.shields.io/pypi/dm/spotify-dlp)](https://pypi.org/project/spotify-dlp/)\n[![GitHub license](https://img.shields.io/github/license/zWolfrost/spotify-dlp)](LICENSE)\n\nCommand line downloader for spotify tracks, playlists, albums and top artists tracks.\nIt works by taking the metadata out of these items using the Spotify API and searching them up on youtube.\nThen, it downloads the result by using yt-dlp.\n\n\n&nbsp;\n## Installation\n1. After having installed [Python 3](https://www.python.org/downloads/) with pip, you can install spotify-dlp using the following command:\n\t```bash\n\tpip install spotify-dlp\n\t```\n\n2. Then, login to [Spotify developer console](https://developer.spotify.com/dashboard) and click on \"Create an App\". Fill in details for name and description.\n\n3. Make a note of Client ID and Client Secret. These values need to be then set to the `SPOTIFY_DLP_CLIENT_ID` and `SPOTIFY_DLP_CLIENT_SECRET` environment variables respectively\n\n\tAlternatively, you can also include them in a `.env` file in the working directory, or even directly pass them as arguments.\n\n\tYou can set environment variables by doing the following:\n\n\tWindows (run in cmd as administrator):\n\t```cmd\n\tsetx SPOTIFY_DLP_CLIENT_ID \"your_client_id\"\n\t```\n\t```cmd\n\tsetx SPOTIFY_DLP_CLIENT_SECRET \"your_client_secret\"\n\t```\n\n\tLinux (add to `~/.bashrc`):\n\t```bash\n\texport SPOTIFY_DLP_CLIENT_ID=\"your_client_id\"\n\texport SPOTIFY_DLP_CLIENT_SECRET=\"your_client_secret\"\n\t```\n\n4. You can now use the script by running `spotify-dlp` in the command line.\n\tAlso, ffmpeg is required if you wish to convert the m4a codec to another one using the `-c` argument.\n\n\n&nbsp;\n## Arguments\n| Command                | Example      | Description\n|:-:                     |:-:           |:-\n|                        | \"kon queso\"  | The words to search up<br>or a link to a spotify album, artist, playlist or track.\n| `-i` `--client-id`     | \"qwertyuiop\" | The Spotify Client ID*.\n| `-s` `--client-secret` | \"asdfghjkl\"  | The Spotify Client Secret*.\n| `-f` `--format`        | \"{name} - {authors} ({album})\" | The format of the downloaded tracks' names<br>(`--help` to show available fields).\n| `-t` `--type`          | \"track\"      | When searching up a query, the specified type of content.\n| `-o` `--output`        | \"./album/\"   | The output path of the downloaded tracks.\n| `-c` `--codec`         | \"m4a\"        | The audio codec of the downloaded tracks.\n| `-y` `--yes`           |              | Whether to skip the confirmation prompt.\n| `-l` `--slice`         | \"2:6\"        | The beginning and ending index of the list items to download<br>separated by a colon \":\" (1-based).<br>Either one of those indexes can be omitted.\n| `-v` `--verbose`       |              | Whether to display verbose information.\n| `--help`               |              | Show the help message and exit.\n\n*Required if not already found in the environment variables or in the working directory `.env` file.\n\n\n&nbsp;\n## Use Examples\n```\nspotify-dlp kon queso mf doom\n```\n```\nspotify-dlp mm food -t album -o \"%userprofile%\\Desktop\" -a mp3 -c\n```\n```\nspotify-dlp https://open.spotify.com/album/1UcS2nqUhxrZjrBZ3tHk2N -i \"your_client_id\" -s \"your_client_secret\"\n```\n\n\n&nbsp;\n## Screenshots\n![Downloading album](https://i.imgur.com/5A51fah.png)\n\n\n&nbsp;\n## Changelog\n*This changelog only includes changes that are worth mentioning.*\n\n- **2.0.0**:\n<br>- Basically, everything changed. Also added package to PyPI.\n\t- **2.0.1**:\n\t<br>- Fixed `--verbose` argument not working.\n\t<br>- Made youtube search more accurate.\n\t<br>- Better error handling.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Command line downloader for spotify tracks, playlists, albums and top artists tracks.",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://github.com/zWolfrost/spotify-dlp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e0e0404d6ff5535e0bbe4e2e523f42bde8498694cd8bfec48f39f7099f4221f",
                "md5": "1644fa1d517659c8a6de1bf1b6a75f75",
                "sha256": "c9aff29e4dba3627aea287ab8def63562bbe90cefc774f9c30f1428b5776dbaf"
            },
            "downloads": -1,
            "filename": "spotify_dlp-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1644fa1d517659c8a6de1bf1b6a75f75",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11440,
            "upload_time": "2024-05-05T20:23:18",
            "upload_time_iso_8601": "2024-05-05T20:23:18.905563Z",
            "url": "https://files.pythonhosted.org/packages/0e/0e/0404d6ff5535e0bbe4e2e523f42bde8498694cd8bfec48f39f7099f4221f/spotify_dlp-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1cd30e81db67cdb1ed6c10601b868f35cde945514557179cc76fe9201862a23",
                "md5": "b47d0254e3b6df5bfa1b0eb85a854211",
                "sha256": "9db05f46d628d22159a412c9d21834edb9177c064f38fe4c313c5d63e50eb36d"
            },
            "downloads": -1,
            "filename": "spotify-dlp-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b47d0254e3b6df5bfa1b0eb85a854211",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6753,
            "upload_time": "2024-05-05T20:23:20",
            "upload_time_iso_8601": "2024-05-05T20:23:20.687120Z",
            "url": "https://files.pythonhosted.org/packages/a1/cd/30e81db67cdb1ed6c10601b868f35cde945514557179cc76fe9201862a23/spotify-dlp-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-05 20:23:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zWolfrost",
    "github_project": "spotify-dlp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "spotify-dlp"
}
        
Elapsed time: 0.24812s