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.
Can't download from bangumi/bilibili pages using certain URLs #15545
Comments
|
https://www.bilibili.com/bangumi/play/ep173288
|
|
you-get (another popular video download tool written in python) allows you to download a single bilibili bangumi episode. run if you need multiple episodes you could try This downloads |


Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.02.08. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):$ youtube-dl -v https://www.bilibili.com/bangumi/play/ep63725
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.bilibili.com/bangumi/play/ep63725']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.08
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[generic] ep63725: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ep63725: Downloading webpage
[generic] ep63725: Extracting information
ERROR: Unsupported URL: https://www.bilibili.com/bangumi/play/ep63725
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2192, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2542, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2531, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 5, column 52
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3111, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.bilibili.com/bangumi/play/ep63725
$ youtube-dl -v http://bangumi.bilibili.com/anime/2543/play#63725
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://bangumi.bilibili.com/anime/2543/play#63725']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.08
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[BiliBili] 63725: Downloading webpage
[BiliBili] Downloading episode 63725. To download all videos in anime 2543, re-run youtube-dl with http://bangumi.bilibili.com/anime/2543
[BiliBili] 63725: Downloading JSON metadata
[BiliBili] 63725: Downloading video info page
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on u'http://tx.acgvideo.com/a/df/3889896-1.mp4?txTime=1518209338&platform=pc&txSecret=1279e75c3a7605714c01116098f51c78&oi=2164441935&rate=60642&hfb=b99ffc3c5c68f00a33123bb25f882d5b'
[download] Destination: 狐妖小红娘:番外-63725.mp4
[download] 100% of 16.60MiB in 03:47
$ youtube-dl -v https://bangumi.bilibili.com/anime/2543/play#191521
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://bangumi.bilibili.com/anime/2543/play#191521']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.08
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[BiliBili] 191521: Downloading webpage
[BiliBili] Downloading episode 191521. To download all videos in anime 2543, re-run youtube-dl with https://bangumi.bilibili.com/anime/2543
[BiliBili] 191521: Downloading JSON metadata
[BiliBili] 191521: Downloading video info page
ERROR: BiliBili returns error -5016
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bilibili.py", line 131, in _real_extract
self._report_error(video_info)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bilibili.py", line 82, in _report_error
raise ExtractorError('%s returns error %d' % (self.IE_NAME, result['code']), expected=True)
ExtractorError: BiliBili returns error -5016