cnbeining / Biligrab

Yet another danmaku and video file downloader of Bilibili.
MIT License
103 stars 14 forks source link

biligrab's appkey is blocked again. #28

Open persmule opened 8 years ago

persmule commented 8 years ago

DEBUG:root:{"code":-1,"error":"app has been blocked."} DEBUG:root:Bilibili API: {"code":-1,"error":"app has been blocked."}

cnbeining commented 8 years ago

shoot。

cnbeining commented 8 years ago

Should be fixed...

persmule commented 8 years ago

It seems bilidan utilizes some form of obscuration.

cnbeining commented 8 years ago

Not really, and I am not really fond of that.

Since we can get the key from a sh*tload of sources, it makes no sense to hide anything within this project: just pointless.

m13253 commented 8 years ago

Perhaps we can parse the files on a server? That will not expose our appkeys.

Just a hint: The official Bilibili mobile app uses different keys for request and signing. The latter was calculated from the current date and time. And the signing algorithm is different from what is documented.

cnbeining commented 8 years ago

As discussed with soimort, I do not want to run any server-side stuff to make anything running.

For now I am using their own key pair. And for now I am not very interested in changing the whole algorithm- let's wait and see.

2016年4月25日星期一,Star Brilliant notifications@github.com 写道:

Perhaps we can parse the files on a server? That will not expose our appkeys.

Just a hint: The official Bilibili mobile app uses different keys for request and signing. The latter was calculated from the current date and time. And the signing algorithm is different from what is documented.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/cnbeining/Biligrab/issues/28#issuecomment-214577065

arition commented 8 years ago

I cannot fetch the video now. Seems that they have changed the sign algorithm?

DEBUG: [2422130]
INFO:root:You are downloading all the parts in this video...
DEBUG:root:BiliURL: https://api.bilibili.com/view?appkey=c1b107428d337928&id=2422130&type=xml
INFO:root:Fetching api to read video info...
DEBUG:root:{"code":-3,"message":"API sign invalid","ts":1463717923}
DEBUG:root:Bilibili API: {"code":-3,"message":"API sign invalid","ts":1463717923}
cnbeining commented 8 years ago

No.

They are just banning all the 3rd party API keys.

https://github.com/soimort/you-get/blob/6b9e2978908fa1f55866b4c65d619756adc08cfe/src/you_get/extractors/bilibili.py#L14

Sigh.