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 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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for bandcamp_name_your_price_dl-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f325b39b1fe32e41b694557bdf89faf983be31b4df74231d877ed3532e725757 |
|
MD5 | ad366bd6116f73d34df3d7cfbe8ea321 |
|
BLAKE2b-256 | 5238ed31f7be743d6f925bdda3cc8e0b8cf8076838e83acfec8e80dbff611b17 |
Close
Hashes for bandcamp_name_your_price_dl-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31e7d468d2718efed95dcab7d0376956dc9cd0b69289b4b5a920c4823d1ce1e |
|
MD5 | fd6be548c6484329f78561b016b6f722 |
|
BLAKE2b-256 | 6a4737b644f71cca9f8673fbb41e7b5a9dc4c0f9445eb18ca00e91f916936cea |