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 a selenium browser driver. 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}, --format {mp3,mp3v0,flac,aac,ogg,alac,wav,aiff}, -f {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 trying to download
  --wait-time SECONDS   period to wait for pages loading (in seconds) (default is 10)
  --preparing-wait-time SECONDS
                        period to wait for bandcamp preparing download (in seconds) (default is 60)
  --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 don't write anything to it
  --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

Download discography of an artist

To list albums of an artist you may use bandcamp_list_albums.

bandcamp-dl may be used to download not name your price albums.

for album in $(bandcamp_list_albums "$BANDCAMP_PAGE_URL" --print-urls)
do
    bandcamp_name_your_price_dl "$album" || bandcamp-dl "$album"
done

You may also want to specify email, country and postcode in case bandcamp asks for those and download directory.

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.8.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

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

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.8.tar.gz
Algorithm Hash digest
SHA256 988a049c0a2eac221d03a3fe47a8f2be8579a215d6a3d66fece1552bc52b6a5c
MD5 42aa42f4826637041b272108fceeb17f
BLAKE2b-256 e2281012c73d120e654575717c8541177aee45a27daa624f23bbe74613101954

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bandcamp_name_your_price_dl-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1c1d476018c894ebf4e29faeb322bf920dc1aff55ce2c67acf8b0cb17a923a82
MD5 6956d873593d97790cab0261b5efe7ed
BLAKE2b-256 618d94993952df6c006a40f3de0a0e940efb1480bdbe1dbcc3e0dd07f14aeaa3

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