Just found a nice website that analyzes the video path and so we could download the videos that are on bilibili.com! As of today when I post this, the webpage ibilibili.com is still alive.
06/05/2017: Something to note. Member-only videos (non public videos) cannot be downloaded right now. Keyword test: 다운로드, 下载, 下載, ダウンロード, descargar, скачать, ดาวน์โหลด
The Ultimate Solution
Hi all, I have been looking for a reliable solution for so long. I've been searching since 2015, and it never really gives a reliable solution. After struggling for a while, here I give you the ultimate solution to run on your PC. Using it as a web service is possible, but it'll be too costly to maintain. Given my financial condition I cannot afford that.
Anyway, the essential steps are simple. As some people are confused about the procedure, let me make this clearer. Don't give up on trying! (08/12/2017)
- Install Python 3 and reboot your computer
- If you use Linux or Mac OS, open up a terminal
- Run the following command:
sudo pip3 install you-get
pip3does not exist, try replacing that with just
- Run the following command:
- If you use Windows, open up the command window as Administrator
- Download the video by:
you-get [Bilibili link]
For more installation guidelines, please visit here.
# to look for video information you-get -di http://www.bilibili.com/video/av854324/ # if the link contains multiple videos, use ?p=xx for individual video you-get -di http://www.bilibili.com/video/av854324/?p=65
The output looks like
site: Bilibili title: 古风恒久远，良曲永流传【古风合集】 streams: # Available quality and codecs [ DEFAULT ] _________________________________ - format: flv container: flv size: 18.9 MiB (19853917 bytes) # download-with: you-get --format=flv [URL] - format: hdmp4 container: mp4 size: 18.7 MiB (19559025 bytes) # download-with: you-get --format=hdmp4 [URL] - format: mp4 container: mp4 size: 15.1 MiB (15827299 bytes) # download-with: you-get --format=mp4 [URL]
So if you want to download mp4, then run
you-get --format=mp4 http://www.bilibili.com/video/av854324/index_65.html
And a real example from Hiki:
Q & A & Trouble Shooting
Q1: Where did I download my file?
The downloaded video will be located at whichever folder you run you-get. Below is a brief example how to browse folders in terminal.
For Windows: (anything after # means comments)
C:\WINDOWS\System32\> dir # list files in current folder C:\WINDOWS\System32\> D: # change to D disk D:\> cd xxx_folder_name # change to xxx_folder_name D:\xxx_folder_name\> cd .. # change back to upper folder D:\> you-get http://xxxxx
For MacOS (or Linux):
~$ ls # list files in current folder ~$ cd xxx_folder_name # change to xxx_folder_name ~$ cd .. # change back to upper folder ~$ pwd # know current folder path ~$ you-get http://xxxxx
Q2: I'm getting UTF-8 locale issues.
you-get: [error] oops, the current environment does not seem to support Unicode. you-get: please set it to a UTF-8-aware locale first, you-get: so as to save the video (with some Unicode characters) correctly. you-get: you can do it like this: you-get: (Windows) % chcp 65001 you-get: (Linux) $ LC_CTYPE=en_US.UTF-8
Kyo posted this. What you need to do is to run the following as soon as you open the terminal:
- For MacOS or Linux
- For Windows
C:\Windows\System32\cmd.exe /K chcp 65001
Q3: Why there is error downloading through a link?
Recently Bilibili has taken down most of its videos due to pirating issues.
01/15/2018: If you have encountered 403 or 466 error, use the following as a temporary solution:
pip3 install --upgrade https://github.com/ygmpkk/you-get/archive/develop.zip
To convert back later when the merge is approved, go back to the original version via:
pip3 install --upgrade https://github.com/soimort/you-get/archive/master.zip
Note: if you find issues downloading the video, try to update you-get using the following command:
pip3 install --upgrade https://github.com/rosynirvana/you-get/archive/master.zip
Also, this method support many other services like Youku, YouTube, Daily Motion, etc. All supported sites are listed here.
Let me know if you get any questions.
The New Method: BilibiliJJ (06/28/2017)
Another one! While I'm still working on it, here is another one you can try. Like iBilibili, you can add JJ after bilibili and get the download links (warning: many ads, but please don't use Adblocker to support the developer).
For example, if you go to a video page like
You can just add "jj" after "bilibili" like
Then you will see "MP4/MP3下载" for each video (if there are parts, they are in separate blocks). Just click on those, you will be redirected to a page with the downloading link.
Then it is a tricky part. For example you get to the page
Then you need to right click the first blue button that says "迅雷下载". Then you will get a link like:
Use this site to translate that link to a normal url, like shown below:
The first is the Thunder link, and the second is the real link. So the actual video download link would be:
Hope this works for many of you. Let me know.
Method 0: DPlayer's API
06/15/2017: these services are never so stable... Hiki mentioned 403 permission error occurs. Maybe it's time to start my own parser. As of 06/28/2017, we still get 403 errors.
Great news, guys! I find this API link for analyzing bilibli video links and we can definitely use it for video downloading (just like BH-5). It's not as simple as putting an "i" in front of the link, but since iBilibili now requires you to register and login and then download, I believe we should name this method "ZERO" for its current up status.
If you want to get the video to download in
Then just use the link
For the popup comments (I learned from there that it should be called "DanMuKu"), use the link
The only issue is I have not figured out how to find the CID of each video, so we cannot download multiple videos in one link right now. But, hey, this is a great start!
05/16/2017: iBilibili has requested all visitors to register a QQ account and sign in to prevent content leakage to other sites. This is bad because the method is getting more complicated, if you don't have QQ already.. I believe you can go here to register it (in English, thank god...).
The trick is simple. When you go to a video page like
You can just add "i" before "bilibili" like
That is it!
Detailed Instruction for iBilibili (04/22/2016)
Kinda surprised many people love bilibili. In comments people are a little confused on how to download the video. Below is a brief tutorial.
Say you have visited
http://www.ibilibili.com/video/av2555634/ and want to download the video. If there are multiple videos embedded/posted, then it'll show multiple links. For example,
Each row is one video, from left to right these are "click to watch the video", "parse low quality mp4", "download video (video size)", "MP3 download (mp3 size)" (disabled I think), "show QR code to download", "download popup comments".
If there is only one video, it might show the following instead.
From left to right these are "mobile video" (mp4 format), "mobile QR code", "HD video" (flv format, might be broken), "popup comments", "screenshot", and "parse via JiJi" (seems broken and only ads are showing).
Method 2: Bilibili Helper (05/29/2017, segmented video downloader)
So if you are using Chrome, I just find an extension to help download Bilibili videos (segmented videos only). You can click here to install the extension.
I have tried it and certainly this is so far (05/29) THE best alternative to iBilibili. After you install the extension, it'll pop up and ask you to agree to use the helper (green button). There are plenty functionalities, and by default the downloader is enabled. You might need to restart Chrome browser to allow it to work.
To test it, simply go to any bilibili video, and then you will see the following options.
The cat is the helper menu, and from top to bottom they are: video download, popup comment search, popup comment download (XML format or ASS format).
The only downside of this method is that, if you plan to download a movie for example, you will see tens of download links. The movie is segmented into multiple parts and you have to download them piece by piece. But, you know, this is better than nothing (if iBilibili is out of concern).
Method 3: BH-5 (dead as of 06/05/2017)
I have hidden the contents for your benefit. If it is not hidden, it means BH-5 (bilibilih5.club) comes back alive..
NOTE: the webpage now has some parsing issues for different parts. Only the first part can be accessed. Use Method 1 if possible. (11/05/2016) the problem has been fixed as of 11/27/2016, cheers! NOTE2: as of 12/11/2016, BH-5 is down again.. yes, again.. I guess it has to do with bilibili internal changes on its player. The good news is bilibili is using HTML5 as its player now. Maybe we can do something easier just like BH-5. Stay tuned.
Great news! I just found BH-5 is coming alive again (as of 02/28/2017)! Yay! I'm a bit tired in this because it keeps going down and up, back and forth. Currently it's down again (05/07/2017, thanks to Hiki). I will mark this as an unstable site. Because of this, I will work on my own site to download bilibili videos (as one of my personal projects in summer).
People were having some issues downloading videos using
ibilibili.com. Here I find another nice website that is essentially a html5 version of bilibili. Why that's good? Because you can directly right click on the video and do "Save as..."
The website is
http://www.shiroblue.cn/ or http://bilibilih5.club/ (same site, different domain names) (obviously the web owner has permanently switched to the new domain name).
Either you copy the name of the video and search for it, or do the following.
Suppose (@moon) had http://www.bilibili.com/video/av5047810 but it fails on the iBilibili method. Using the last few digits, we convert the link into:
Now first click the video to play, and wait for the video playing, then right click on the video, we see "Save video as..." is there waiting for you.
It would also work if you replace "http://www.shiroblue.cn/" with "http://bilibilih5.club/".
Sometimes the video stuck after we click it to play, and "Save as" might not work as expected.
A solution I can think of is to refresh the page, choose a different source (like "backup:1" if there is one), and then try again. This method has been deprecated since the website player no longer provides "source" option. If this does not work, post link here and I'll try to help you.
03/12/2017 update about "popup comments". In case you wonder about how to download popup comments in BH-5, I can tell you there is a not-so-simple way. BH-5 gives the option to display the comments, which allow us to download the popup comments. But it needs some efforts. Detailed step below.
- Assume you find BH-5 link: http://bilibilih5.club/#/view/9068328 and you are using Chrome browser.
- Turn on the "Developer Tool" in Chrome as shown below:
- Click the "network" tab, and go to the BH-5 link (or refresh the page if you are already there). Then you will see the following xml file (must be some numbers)
- Congratulations, you have found the popup comments!
Method 4: FLVCD or other online video downloader
As many people from the comments suggested, it seems online video downloader is the best option so far. Here are a recommended list coming from the comments. Feel free to comment and add more.
- http://www.flvcd.com (recommended by Lisa)
- http://www.tubeoffline.com/download-BiliBili-videos.php (recommended by Jenny)
Just be aware there might be ads.
About Downloading Member-Only Videos at Bilibili
Some videos are member-only and currently there are no good ways to bypass that and download them. To view the videos, you have to become a member, answering 20-ish questions correctly. They are all in Chinese so you need to know a bit about the language. You cannot copy the words directly since they are embedded in the image. To answer the questions, if you can type in Chinese/Japanese, you can go to https://www.zhengjie.com/ to find answers as suggested by
findaaaiba. Or you could purchase bilibili account through taobao.
Re-Organized again 🙂 (
10/30/2016 05/29/2017 07/15/2017)
Re-organized contents. Since BH-5 is dead for now, I moved it to later parts of the article. Also thank "kimo" for providing an alternative method, but it seems
vdYoutube.com failed on me.
As the ultimate solution is presented, I will no longer implement my own solution. This solution is on GitHub and is well maintained by many people. If ever the service is down, it can be quickly fixed, either by the developers, or by me. Thank you all for being with me for 2 years. 🙂
I can't believe I'm still updating this post, after 3 years :O (08/30/2018)
hi, i just started to try this solution but failed. i manage to install python but couldn't install pip from both the python and cmd. cmd only says it succeed to install but there was nothing in my python folder. i'm a total computer noob here so if you don't mind, can you tell me from the very 1st? i tried every coding you state but it kept saying not found
sorry, i actually download the pip, just didn't know where it was. turns out it was in "lib\site-packages". does this mean its already installed? can i download the video now? in which directory i have to be to run the "you-get [bilibili]" link?
you were using MacOS or Windows? Either way you should have already installed pip. If you use MacOS, do 'pip install you-get' first, and then use 'cd' to browse into a folder and run 'you-get' there.
I do not code and I'm not sure if I'm doing this correctly. I've installed python3 and ffmpeg to my mac and I'm trying to download you-get. I'm not sure which option to use.
I have tried the home-brew method for mac only, and i get errors in terminal saying that sudo: brew: no command found.
Option 1, I typed in pip3 install you-get and it returns bash: command not found. The other options mention something about putting something in paths and permanent paths and i'm not sure what it means or what I'm supposed to type.
Sorry for the long post. but I really want to download a couple of videos and am having trouble. Would appreciate any help.
Hi Annie, you are using Mac and already installed python3? Try
pip install you-getif
pip3does not work.
If you still get problems, how about send me an email with screenshot so I can help. You can email me at yz at 9pm dot me
How to change directory for Download?
you just run you-get in a different directory 🙂
Still error like this
you-get: [error] oops, the current environment does not seem to support Unicode.
you-get: please set it to a UTF-8-aware locale first,
you-get: so as to save the video (with some Unicode characters) correctly.
you-get: you can do it like this:
you-get: (Windows) % chcp 65001
you-get: (Linux) $ LC_CTYPE=en_US.UTF-8
btw i use windows
run 'cmd /K chcp 65001' in your windows terminal
is it possible to download bilibili videos from a mac system instead of windows? I don't have windows 🙁
Yea, you just use Mac's terminal and install you-get
OMG! Thanks so much for the ultimate method!
Total noob here about Python and still doesn't get the tutorial so I hope it's okay to ask for some help 🙁
so... after installing Python 3, rebooting and opening as administrator, i run the you-get code but i get the invalid syntax error 🙁
Totally! You are using windows right? After installing Python 3, try to use the Python GUI and see if it works. I don't have a windows but feel free to contact me if you want, e.g., send me some screenshots to help me help you 🙂
my email is yz at 9pm dot me (to be safer on the internet)
Thank you so much! Sent you an e-mail (^^)/
Did you manage to download it? I never get your reply 🙂
Any web to download videos from YOUKU.COM?.
Tubeninja don't work and I can't find other webs.
Yes, I have provided the ultimate solution. You can just follow the steps and it should be very easy to setup.
help! I can't download HQ files from bilibili anymore ( ;_;) everything turn into 360p.
Which method are you using?
i'm using every method possible, even download from vdyoutube. But they're all give me low quality vid. It's only for recent video uploaded, not for the old one. For example this one ===> video/av11803840
just realize that i can download the flv parts for high quality vid and joined the flv using flv joiner. Thank you so much for bilibilijj method!! 😀 i really appreciate it (*^^*)
ha you can use the bilibili-helper the chrome extension to get the high quality video and then combine them. But yea this method isn't really scalable. I do have a solution now but I need to think of lowering the cost or that.
Hi again! Thank you so much for Method #0! Haven't tried it out yet but I hope it works fine for me.
yea definitely! Let me know if it works out 😀
Oh, no >< It doesn't work for me ;w;
I get a 403 Forbidden site instead
Did you try to open the site https://api.prprpr.me/? It won't work like that. You have to add the AV number like I said in the post to make it work.
I see it now.. damn.. hmm.. Let me mark it..
I now understand why 403 happens. It's because Bilibili enabled some check to validate if the URL comes from other sites or bilibili. If you can bypass that, you can still download videos. I can now download with system tools but not a web version.
Thanks for the info! Yes, so far I still get the Forbidden Error. I tried the new JJ method but after clicking the MP3/MP4 link I'm redirected to a complete blank Jijidown page :'(
(replying again since i think i lost my previous reply)
Thanks for the info! I still get the Forbidden Error using ibilibili method 🙁
I tried the JJ method but when I click on the MP3/MP4, I'm redirected to a completely blank jijidown page :(((
Hi Hiki, thanks for giving feedbacks. I now give the ultimate solution which can directly run on your PC, rather than through the browser.
i cant download from jijidown :(, need some help..
Isn't that so? What is the link? I currently have a solution but the cost can be too high to afford. Let me think of a way to accommodate or lower the cost.
i'm using every method possible, even download from vdyoutube. But they're all give me low quality vid. It's only for recent video uploaded, not for the old one. For example this one ===> video/av11803840
Try to use you-get
I can't sign up on QQ because it says my number is invalid and
flvcd and tubeoffline both give an error. Is there really no other method? This is my first time downloading from bilibili so I'm kinda bummed ><
Did you try to use e-mail account rather than QQ number? Other than that, I have not found a really good method to download the video.. I only found one solution that you can download one video in segments, I'll add that to the post.
yo usaba clipconverter pero ya todos los sitios que los usabas para descargar los bloquearon desde los servidores
Hi there! I don't know Spanish very well so I used Google Translate. But yes, it seems all these sites now have a hard time to get the contents. It's time to work on my own version so it could be move reliable (hopefully, at least I know how to debug if things went wrong :P). I was talking about this a while ago and now finally I start to have some time to work on it. Stay tuned.
Hi there, I found a new way to download videos (method 0), give it a try!
So um... There's currently no way to download from bilibili ever since they added that qq thing? I tried logging in but when I go to ibilibili and find my video it says access is denied or something.
can you give me a link so I can test it please?
Yep sure~ This is the one I was attempting to download http://www.ibilibili.com/video/av10673439/
I checked it and I could download the video without problems (after login with QQ and then register the iBilibili account). I sent you the link via email and see if you can download through that link directly.
Is it me or is ibilibili requiring me to log in to their site or whatever that qq is? Cuz I last used it last month and it didnt had all this qq thingy
yea you are right.. they recently made the change because some other sites steal the analyzed contents from them.. that was a stupid but reasonable move..
Hi... just want to ask if ibilibili is not working for everyone or only me? Usually it working fine for me but since some days or weeks (?) ago it doesn't work anymore. There is no link to click like usual (like you mentioned above).
And with BH-5 closed down again, I have no other way to download from bilibili. (method 3 doesn't work at all for me) T____T
I read that you will make your own site to download from bilibili so I'm waiting for it... Thank you and fighting!! ^^
yea ibilibili recently made the move asking for reg because their site contents got stolen from others.. I'm also very sad BH-5 is down.. I also don't like that the method to get bilibili videos are getting more and more complicated. Yes, I will do my own project on this but my plan was to finish this by Sept.. I'll try to get some spare time in late May and hopefully finish it soon.
Any suggestions on how to get this video? /video/av10325734/
bilibilih5 was working, but then the site died halfway through...
I can't get access to the video even if I logged in.. is it private? As far as I know all solutions now are for public links only..
any way to download bilibili video that can be accessed only when you're member of bilibili?
For example this vid http://www.bilibili.com/video/av10420054
from this user http://space.bilibili.com/60958832/#!/video
I tried to regist as member, but i didn't pass the exam because it's all in chinese ;_; i can't chinese to save my life.
Sorry currently I do not have any easy way to do so.. to pass the exam, I can suggest to copy the questions in Chinese and search for answer using Google translate; or maybe buy service that helps you answer questions like https://world.taobao.com/search/search.htm?_input_charset=utf-8&q=哔哩哔哩会员
too bad the questions written on image so it can't be copied. ( ;_;) thanks for your solution 😀
np, I can try to organize the solutions to those questions and create a new post for that. I'll do that in late May.Oh I get what you were saying.. oops sorry they were not in image before.. I'll see if there is any thing to do about that..
I passed the exam like finally! I can a little bit Japanese, so I figured some words in the question and copy paste in this site to get the answer ==> https://www.zhengjie.com/ that site is SO useful for me who can't chinese at all ;_;
I know it's late since i was lurking your blog long before (silent reader here sorry ;A;), but really... thank you, thank you so much! Whenever BH5 down, i always going to this site to check if it's my internet connection or BH-5 is really down. 😀 You really are hero. Thank you again. (^^)
Ha, thanks for that link and I'll mark that in my post. No problem, glad that I can help.
Seems like http://bilibilih5.club/ site is down?
yea you are right. The original page is http://whiteblue.github.io/bilibili-html5/ and it is down again..
Oh no TwT would it get revived again? please update us if ever ;; i find it easier to DL vids there than from ibilibili orz
Is there anyway to DL the videos with the popup comments? I tried ibilibili, doesn't work:(
Can you post a link so I can check why ibilibili doesn't work? There are plenty of ways. ibilibili should work.
If not, you can go to BH-5, turn on the "Developer Tools" on Chrome, for example. Then in the developer tools choose the "network" tab, and load that video. You will see file like "somenumber.xml". And that is the popup comments.
I just updated the tutorial.
Thank you so much guy
God bless you!
OMG!! Thank you so muuchhh!! I thought I couldn't download this video I want to have so much from bilibili, but then I found this wonderrrful website~
Ugh, can't thank you enough ♥♥♥
ibilibili works well, thank you!
Just try to download bilibili from http://flvcd.com
They have 3 version video downloads. Standard, HD, and Super Clean (FLV format video, HD 1080p)
Hope this can help you 🙂
Thanks Lisa, I have updated the post to reflect that.