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.
[Bilibili] Extraction broken #11077
[Bilibili] Extraction broken #11077
Comments
|
They switched to a new appkey. |
|
@yan12125 I remember Bilibili itself does not host videos. All videos are ultimately hosted on other websites, can we track the origin and trigger the download procedure from there? |
If you can watch the video on the hosting website instead of bilibili, yes. |
|
Bilibili now host some of their videos on their own servers instead of streaming from other servers |
|
@yan12125 That's the problem... I am not sure how to track its source. |
|
@ztytian What kind of videos are hosted on Bilibili-owned servers? |
I don't know either. Here's how Bilibili was cracked the last time: #10375 (comment) |
|
@yan12125 Many thanks. I just tried it out. But somehow the speed is still limited. Not too sure how Bilibili works now consider if they are now self-hosting videos. But here's what I've done: That gist is written in C# but I'm using Mac. So here's what I got from compiled and ran in Mono:
Then use Youtube-dl to download that video (but it is not from any big video website in China, such as Youku, Tudou, Sina, etc. Presumably it is a CDN-like website of Bilibili?), it still has that speed limitation of approximately 10kB/s, which is the same of running In conclusion, I am not sure if that video is truly hosted by Bilibili, or its real address has been casted by Bilibili, and when user refer to the address above, Bilibili will trigger the bandwidth limitation. As far as what I thought, I think there's two ways to bypass this: 1) Find out the real URL. 2) Simulate youtube-dl like a real user (user-agent and cookie?). |
|
UnBili.cs is for the old appkey, which seems to be semi-blocked now. To get things work, someone need to find out how to use the new appkey. |
|
I doubt whether the restriction is only related to appkey, as it seems that rate control is also considering IP frequently. If the rate is limited, there's little 3rd softwares could do since the limit is hard coded in the URL. What we can do is to export the URLs and download with multiple threads: for now the limit is per thread. However, if the file does not exist at the CDN edge server(most likely would occur on WS servers for oversea users) we have to put up with this for the rate is limited by the bandwidth between China and the edge. One workaround is to use proxies (e.g., those provided by the ISPs) to get links from Bilibili 's own server but expect severe speed limit.... |
|
Now they banned the old appkey. It's a shame of me for not knowing how to crack Emscripten. |
|
Cannot find anything useful in the memory. |
|
@yan12125 You mean the |
|
@starkshaw Yes. Now Bilibili returns this to youtube-dl:
|
|
Please refer to You-get or Biligrab for a workaround.
Yen Chi Hsuan <notifications@github.com>于Sun, Dec 11, 20169:21 AM写道:
… @starkshaw <https://github.com/starkshaw> Yes. Now Bilibili returns this
to youtube-dl:
{"code":-5002,"result":"appkey invalid"}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfRgv3yLBPRgwDNAw6Vnbtk0dE4S2Svks5rHAbPgaJpZM4KkdV3>
.
|
|
Any reason call it a "workaround"? |
|
I didn't manage to get the appsecret either. This method is from the SWF
player.
Yen Chi Hsuan <notifications@github.com>于Sun, Dec 11, 201611:45 AM写道:
… Any reason call it a "workaround"?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfRgs7dN9y3kblYnVxO1xONe2lMT3YFks5rHCisgaJpZM4KkdV3>
.
|
|
the bilibili code used in desktop website has been compiled using so there will be a need either to create a python interpreter for this bytecode or try to translate it into a more understandable format to be able to extract the some of the printable string used by the bilibili code:
|
|
Cannot download. Getting this error (looks like no one is posting a similar log in this bug): [debug] System config: [] |
|
It's may be better to take a look at their HTML5 version, switch UA to mobile devices or MacOS/Linux. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.10.31. 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
Description of your issue, suggested solution and other information
The download mission still can be done but the speed is limited at 10kB/s, but viewing from website is fully working. This issue appears shortly after Bilibili announced their membership plan early this month.