Skip to main content

A tool to download tracks from soundcloud.com

Project description

soundcloud-dl

Downloads

A small command-line program to download tracks from soundcloud.com You'll need to get an API key since there are rate limits on streams

Installation

Using Pip

  • Run pip install soundcloud_dl

From Source

  • Clone the repo or download the zip
  • Make sure you have pip installed
  • cd to the folder
  • pip install -r "requirements.txt"

Getting an API key

  • Log in to Soundcloud and register a new app here. That should give you an API key
  • Navigate to the folder where the package is installed Python36\Lib\site-packages\soundcloud-dl\downloader
  • Create a file called config.py and add your API key there as shown in the file config-example.py

Usage

Options

 soundcloud_dl.py [-h] [-t] [-n] [-s] [-d DIR] [-a] [-l]
                       [-e EXCLUDE [EXCLUDE ...]] [-i INCLUDE [INCLUDE ...]]
                       [--limit LIMIT] [-r RANGE RANGE] [-g [GENRE]]
                       [url]

 positional arguments:
   url                   URL to download tracks from

 optional arguments:
   -h, --help            show this help message and exit
   -t, --top             Downloads the top 10 tracks across all genres
   -n, --new             Downloads 10 new tracks across all genres
   -s, --similar         Downloads 10 tracks similar to the track in the URL
   -d DIR, --dir DIR     Directory to save tracks in. Default value is the
                         current working directory
   -a, --all             Download all tracks (Uploads and likes)
   -l, --likes           Download only liked tracks.
   -e EXCLUDE [EXCLUDE ...], --exclude EXCLUDE [EXCLUDE ...]
                         Enter track numbers to exclude.
   -i INCLUDE [INCLUDE ...], --include INCLUDE [INCLUDE ...]
                         Enter track numbers to include
   --limit LIMIT         Maximum number of tracks to download
   -r RANGE RANGE, --range RANGE RANGE
                         Enter range of tracks to download
   -g [GENRE], --genre [GENRE]
                         use with --top to get top tracks from a specific genre
  • sc-dl can be used instead of soundcloud-dl
  • --top, --new and URL arguments are mutually exclusive
  • The url can be a link to a user, a track or a user's playlists. Downloads a user's uploads unless --all or --likes options are given
  • Adding the --include option overrides the --exclude option
  • Example : sc-dl https://soundcloud.com/aaasrith --dir D:\Music
  • Example : sc-dl https://soundcloud.com/aaasrith --dir D:\Music --exclude 1 2 3
  • Example : sc-dl https://soundcloud.com/aaasrith/closurewithaclause -s

Contributions

If you want to add features, improve them, or report issues, feel free to send a pull request!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soundcloud_dl-0.1.19.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soundcloud_dl-0.1.19-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file soundcloud_dl-0.1.19.tar.gz.

File metadata

  • Download URL: soundcloud_dl-0.1.19.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for soundcloud_dl-0.1.19.tar.gz
Algorithm Hash digest
SHA256 ebf04ee51118a73be3d51488c9615eebf95da3a7720eb98da1bfcb0f7d91c7c3
MD5 c66fc9fdf601c07ab1986f02ffa8a5ac
BLAKE2b-256 adfdd45aaa85833bd20278e9066e33481b5f39f3218ffd400c40bf9fe767f406

See more details on using hashes here.

File details

Details for the file soundcloud_dl-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: soundcloud_dl-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for soundcloud_dl-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 602c8e44d80f948b71c99297817ed82d118dc334dcde7cc707638125ba764d1d
MD5 f288c4336495ac0931d9759829843ef6
BLAKE2b-256 3193bfb52dd520559932a944d9cf1a8a5778724d74a61822a2bcae0067345c0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page