Skip to main content

Automate process of downloading name your price albums from bandcamp.

Project description

bandcamp_name_your_price_dl

Automate process of downloading name your price albums from bandcamp with Selenium.

Installation

pip install bandcamp_name_your_price_dl

Also you need to install browser drivers. Refer to selenium installation guide.

Usage

usage: bandcamp_name_your_price_dl [-h] [--download-dir download_dir] [--encoding {mp3,mp3v0,flac,aac,ogg,alac,wav,aiff}] [--skip-nyp-check] [--wait-time seconds] [--preparing-wait-time seconds]
                                   [--driver {phantomjs,chromium,chrome,edge,firefox,opera,safari,webkit}] [--show-browser-window] [--print-url] [--skip-if-file-exists] [--email EMAIL]
                                   [--country-abbrev COUNTRY_ABBREV] [--postal-code POSTAL_CODE]
                                   album_url [download_dir]

Automate process of downloading name your price albums from bandcamp.

positional arguments:
  album_url             url of desired bandcamp album
  download_dir          directory to download album to

optional arguments:
  -h, --help            show this help message and exit
  --download-dir download_dir, -d download_dir
                        directory to download album to
  --encoding {mp3,mp3v0,flac,aac,ogg,alac,wav,aiff}, -e {mp3,mp3v0,flac,aac,ogg,alac,wav,aiff}
                        desired encoding
  --skip-nyp-check      don't check if album is name your price before downloading
  --wait-time seconds   period to wait for pages loading
  --preparing-wait-time seconds
                        period to wait for bandcamp preparing download
  --driver {phantomjs,chromium,chrome,edge,firefox,opera,safari,webkit}
                        desired webdriver (default is chromium)
  --show-browser-window
                        show browser window (is hidden by default)
  --print-url, --p      print url to stdout instead of downloading
  --skip-if-file-exists
                        skip download if desired file already exists
  --email EMAIL         your email address (is used if bandcamp asks for email)
  --country-abbrev COUNTRY_ABBREV, --country COUNTRY_ABBREV
                        country abbreviation used if bandcamp asks for email
  --postal-code POSTAL_CODE, --postcode POSTAL_CODE, --zip-code POSTAL_CODE
                        postal code used if bandcamp asks for email

Usage example

To list albums of an artist you may use bandcamp_list_albums

Download discography of an artist

for album in $(bandcamp_list_albums --print-urls)
do
    bandcamp_name_your_price_dl "$album"
done

You may also want to specify download directory, email, country and postcode

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

bandcamp_name_your_price_dl-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file bandcamp_name_your_price_dl-0.0.2.tar.gz.

File metadata

  • Download URL: bandcamp_name_your_price_dl-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d41bacf304ebcd43995d40cebb16dfdc0f7d2a7c6bf0db023fecca0eaf94a222
MD5 b11009f218f6939e0cba7fa8bf2d1769
BLAKE2b-256 4b83c018b1779a9ef761132f7168e28ee614356d4d1028ee46a8821cb967e046

See more details on using hashes here.

File details

Details for the file bandcamp_name_your_price_dl-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bandcamp_name_your_price_dl-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff36e486d105bf05201b11a900ccb1dddb337dcda85bc1e8adb37d0069761bab
MD5 3f5cfc4501d04a056467e02887ae8c06
BLAKE2b-256 ff05a5b5b7e48c3e6f4f3f1342f6aa5c89371722606b83a2cd5cf7544b9e9046

See more details on using hashes here.

Supported by

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