Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Bandcamp and Youtube-dl #6231
Bandcamp and Youtube-dl #6231
Comments
|
That is not supported. Only per album. |
|
A quick ruby script to hack this - requires curb and nokogiri gems. I named it "bandcamp-dl" on my system, although that name does refer to someone else's program, which is unfortunately not working for me...invoke like
Edit: keeping this here: https://github.com/djvs/bandcamp-dl |
|
@djvs well, those who are under Linux are quite privileged to use a set of tools, pipeline them together, and produce the desired result in no time. My way of downloading Bandcamp albums is rather silly, yet so convenient. All I do is to extract the links (thanks to elinks, a nice text web browser), clean the unnecessary duplicates, and save them in a file. Then I use that file with Step 01elinks --dump --no-numbering <URL> |
grep -e '.com/album' -e '.com/track' |
sed 's/.*https/https/g' |
uniq > links.txtStep 02youtube-dl \
-o "Your artist's name - %(playlist)s/%(playlist_index)s. %(title)s.%(ext)s"
-a links.txtUPDATENo need to save the extracted links to a file; just run the following updated command and will do: youtube-dl -x --audio-format mp3 \
-o "<Foo-artist-name>/%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s" \
$(elinks --dump --no-numbering https://<foo-artist-name>.bandcamp.com | \
grep -e '.com/album' -e '.com/track' | \
sed 's/.*https/https/g' | uniq) |
|
@dstftw I cannot download per album nor track:
@stefanos82 when I tried your method links.txt came out blank. |
|
@chimmel I have just tried my suggestion and I can download the entire discography of your band. What exactly did you do if I may ask? |
|
Made your script a bashrc function.
|
|
I've been trying to download from this with and without the aforementioned PR but it always ends up with:
Removing format directive from config or overriding it to anything (like '-f best', '-f bestaudio' or '--format none --audio-format best') doesn't change anything. |
|
Bandcamp has changed their metadata formatting recently (in the last day-ish). That's probably the cause and would need a fix on youtube-dl part. |
|
@lyz-code |
|
Hi @mjlee2003 , I have no idea on how to convert python code to exe (I only use Linux), but probably the youtube-dl documentation tells you how. Once you've discovered how to convert python code to an exe file, clone or download the Sorry for not being able to give you more help :( |
Is there any way to do youtube-dl username.bandcamp.com and it download all of the albums? Is that supported yet?
When I tried it gave me this error.
nicks-mac-mini:~ nick$ youtube-dl http://liluglymane.bandcamp.com --verbose flag
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://liluglymane.bandcamp.com', u'--verbose', u'flag']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.10 - Darwin-13.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1
[debug] Proxy map: {}
[Bandcamp:album] liluglymane: Downloading webpage
ERROR: The page doesn't contain any tracks; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 654, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 273, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bandcamp.py", line 169, in _real_extract
raise ExtractorError('The page doesn't contain any tracks')
ExtractorError: The page doesn't contain any tracks; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
nicks-mac-mini:~ nick$