{"id":15025201,"url":"https://github.com/swapnilsoni1999/spotify-dl","last_synced_at":"2025-05-14T02:03:43.143Z","repository":{"id":35012085,"uuid":"185091285","full_name":"SwapnilSoni1999/spotify-dl","owner":"SwapnilSoni1999","description":"Spotify Downloader and alternative of Spotdl(python) tool made in NodeJS based on youtube-dl ","archived":false,"fork":false,"pushed_at":"2025-04-01T12:41:08.000Z","size":26594,"stargazers_count":1424,"open_issues_count":3,"forks_count":151,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-03T10:38:52.435Z","etag":null,"topics":["downloader","hacktoberfest","nodejs-script","spotify","spotify-dl","spotify-downloader","youtube-dl"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SwapnilSoni1999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-05T22:53:06.000Z","updated_at":"2025-04-03T05:24:40.000Z","dependencies_parsed_at":"2024-10-14T08:42:22.873Z","dependency_job_id":"f35b1915-e80c-4851-bf5c-27c7b2c71ada","html_url":"https://github.com/SwapnilSoni1999/spotify-dl","commit_stats":{"total_commits":285,"total_committers":16,"mean_commits":17.8125,"dds":0.4982456140350877,"last_synced_commit":"ecdacd298290928db2a583282795db059549ce8d"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwapnilSoni1999%2Fspotify-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwapnilSoni1999%2Fspotify-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwapnilSoni1999%2Fspotify-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwapnilSoni1999%2Fspotify-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwapnilSoni1999","download_url":"https://codeload.github.com/SwapnilSoni1999/spotify-dl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243474,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["downloader","hacktoberfest","nodejs-script","spotify","spotify-dl","spotify-downloader","youtube-dl"],"created_at":"2024-09-24T20:01:43.518Z","updated_at":"2025-04-10T15:36:19.057Z","avatar_url":"https://github.com/SwapnilSoni1999.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify Downloader\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./logo.png\" height=\"200px\"/\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cb\u003eDownload audio files from spotify links(Based on: youtube-dl)\u003c/b\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u0026nbsp;\n\n#### Required\n\nGet [FFMPEG](https://ffmpeg.org/download.html)\n\n[Node.js 22](https://nodejs.org/en/download/package-manager/)\n\n[git not windows](https://formulae.brew.sh/formula/git)\nor\n[git for windows](https://git-scm.com/download/win)\n\nNote: if you run into issues related to puppeteer chromium download please try `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g https://github.com/swapnilsoni1999/spotify-dl`\n\n#### spotifydl\n\nA simple commandline utility that allows you to download Spotify Songs, Shows, Episodes, Playlists and Albums from Youtube.\n\nPLEASE NOTE:\n\n- The ability to find a video is dependent on the fact it is hosted on youtube, and even then there is a chance it is still incorrectly matched\n- Some items may only be available to spotify premium users, please be sure to provide a username and password when this is the case\n\n\u003chr\u003e\n\n# Installation\n\n#### NPM\n\n```sh\nnpm install -g https://github.com/swapnilsoni1999/spotify-dl\n```\n\nor You can do manually\n\n```sh\ngit clone https://github.com/SwapnilSoni1999/spotify-dl\ncd spotify-dl\nnpm install\nnpm link\n```\n\n#### Android (Termux)\n\nPS: You may need to type `termux-setup-storage` first and allow storage permission\n\n```sh\nsh -c \"$(curl -fsSL https://raw.githubusercontent.com/SwapnilSoni1999/spotify-dl/master/tools/termux.sh)\"\n```\n\n#### Docker\n\n```sh\ndocker run ghcr.io/swapnilsoni1999/spotify-dl\n```\n\nor Build docker image:\n\n```sh\ngit clone https://github.com/SwapnilSoni1999/spotify-dl\ncd spotify-dl\ndocker build -t spotify-dl .\n```\n\n\u003chr\u003e\n\n# Usage\n\nTo download highest quality audio file\n\n```sh\nspotifydl \u003cspotify track/album/playlist link\u003e ...\n```\n\n\u0026nbsp;\n\nExample\n\n```sh\nspotifydl https://open.spotify.com/track/xyz\n\n```\n\n#### Options\n\n| Flag  | Long Flag           | Usage                                                                                                   |\n| ----- | ------------------- | ------------------------------------------------------------------------------------------------------- |\n| --o   | --output            | takes valid output path argument                                                                        |\n| --es  | --extra-search      | takes extra search string/term to be used for youtube search                                            |\n| --oo  | --output-only       | enforces all downloaded songs in the output dir f                                                       |\n| --sf  | --search-format     | provide template for youtube api, supports `albumName`, `artistName`,`itemName`                         |\n|       |                     | \"something {itemName} - {albumName} anyrandomextrastring\"                                               |\n| --of  | --output-format     | provide template for output of filenames, supports `albumName`, `artistName`,`itemName`                 |\n|       |                     | 3 x \\_ are used to signify directories                                                                  |\n|       |                     | \"something**_{artistName}_**{albumName}\\_\\_\\_{itemName}\"                                                |\n| --ef  | --exclusion-filters | comma separated string of exclusion filters                                                             |\n|       |                     | each filter will be checked against the description and title if found the link will be ignored         |\n| --st  | --saved-tracks      | download spotify saved tracks                                                                           |\n| --ss  | --saved-songs       | download spotify saved shows                                                                            |\n| --sp  | --saved-playlists   | download spotify saved playlists                                                                        |\n| --sa  | --saved-albums      | download spotify saved albums                                                                           |\n| --l   | --login             | Requests a login in an external window (non tty should use --u and --p) (Docker without -it is non tty) |\n| --u   | --username          | spotify username for headless long (Note: you must use --login once to grant access)                    |\n| --p   | --password          | spotify password                                                                                        |\n| --cf  | --cache-file        | takes valid output file name path argument                                                              |\n| --dr  | --download-report   | output a download report of what files failed                                                           |\n| --cof | --cookie-file       | takes valid file name path argument to a txt file for youtube cookies                                   |\n| --v   | --version           | returns current version                                                                                 |\n| --h   | --help              | outputs help text                                                                                       |\n| --dl  | --download-lyrics   | enables downloading of lyrics                                                                           |\n| --oft | --output-file-type  | choose which type of file to be output as                                                               |\n\n\u003chr\u003e\n\n## Notes\n\nTo use --u and --p (headless login) you must do a --l once first to grant required permissions (playlists, saved songs ect.)\n\nif you receive 'Got a spotify api error WebapiRegularError: An error occurred while communicating with Spotify's Web API\nDetails: non existing id' you may need to provide auth either use `--l` for manual login prompt or `--u username --p password` for headless login\n\nIf you receive a 429 error please provide a cookies file given the `--cof` flag, to generate a cookies file please refer to [Chrome](https://chrome.google.com/webstore/detail/njabckikapfpffapmjgojcnbfjonfjfg) or [Firefox](https://github.com/rotemdan/ExportCookies)\n\n## Docker\n\n```sh\ndocker run -it --user=$(id -u):$(id -g) -v $(pwd):/download --rm spotify-dl \u003coptions-to-spotify-dl defaults to --help\u003e\ndocker run -it --user=$(id -u):$(id -g) -v $(pwd):/download --rm spotify-dl \"https://open.spotify.com/....\"\n```\n\n#### Acknowledgements\n\nthanks to [icons8](https://icons8.com) for icons in hero image\nand all the contributors for PR, suggestions and testing :love:\n\n\u0026nbsp;\n\n#### License\n\nMIT © [Swapnil Soni](https://github.com/SwapnilSoni1999)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilsoni1999%2Fspotify-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapnilsoni1999%2Fspotify-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilsoni1999%2Fspotify-dl/lists"}