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 {chromium,chrome,edge,firefox,gecko,opera,phantomjs,safari,webkit}]
                                   [--show-browser-window] [--print-url] [--dont-skip-if-file-exists]
                                   [--ignore-cache] [--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, --skip-name-your-price-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 {chromium,chrome,edge,firefox,gecko,opera,phantomjs,safari,webkit},
  --webdriver {chromium,chrome,edge,firefox,gecko,opera,phantomjs,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
  --dont-skip-if-file-exists
                        don't skip downloading if desired file already exists in current directory
                        or was already downloaded
  --ignore-cache        don't load cache and pretend it is empty
  --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 $bandcamp_page_url --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.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: bandcamp_name_your_price_dl-0.0.5.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.5.tar.gz
Algorithm Hash digest
SHA256 998706ea68b2680ac4c091ce6dc346569b5f6151b36b1371953754e2b3b1053e
MD5 386d4bac561115285af5bc523455fc13
BLAKE2b-256 1962c1bef9c372b2af9423c7ebbb28ae2db3d7fe589db5a60db2c67735def3a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bandcamp_name_your_price_dl-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 df98a9351a5cd819fe5e364cfb97b77929be51ab2c67b8b8aeabb79f5dce1a53
MD5 2348b8beab9f6f9805e01a485416b880
BLAKE2b-256 b4f1d74f59c1c0358ab8b020c18d664f796909cdec01f3d952f6a798d883f70a

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