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
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be46a2ed8b4873298443207de9c244449e1c171c333ff8f313568b9aa56adad1 |
|
MD5 | e57680306487fd8e0d6b43e462ad3c5e |
|
BLAKE2b-256 | cf2f461db54e5e45668696ab0c06ac174363ea4f869efa543e7113e836db3944 |
Close
Hashes for bandcamp_name_your_price_dl-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f6779e426eba9d53dc81d594cf4b3c53f0118beccddc87510cbc6aba9bbbec4 |
|
MD5 | 0cdd112fbf7dbba69446fb30655d3b43 |
|
BLAKE2b-256 | 97b32422046f820dbb91b389f19b71001b9c2ef6154f0c09d3a7f14ca6130144 |