SocialSisterYi / bilibili-API-collect

哔哩哔哩-API收集整理【不断更新中....】
https://socialsisteryi.github.io/bilibili-API-collect/
Other
14.07k stars 1.61k forks source link

Support for foreign user #737

Open RealYukiSan opened 1 year ago

RealYukiSan commented 1 year ago

I'm not a Chinese person, and I try to understand this documentation through translation tools, but sometimes the translation results tend to be stiff and become difficult to understand.

It would be nice if someone who doesn't mind volunteering to make a translated version of it, I would appreciate it very much. Thanks for the great repository!

MineCreeper86 commented 1 year ago

i suppose that would be a big work but meanwhile meaningful one are you working on the project named bilibili-dl?

cxw620 commented 1 year ago

I will also help translate some content, but I think the translation of this repo may take a long time. First, for 哔哩哔哩(Bilibili) does not have an official English website or APP (except bilibili.tv, Bilibili's SEA version) , the translation of many proper terms like 投币 needs a uniform standard. What's more, due to the structure of the existing content, it is a bit difficult to submit a translation PR. It is not clear where the translated content should be placed.

RealYukiSan commented 1 year ago

i suppose that would be a big work but meanwhile meaningful one are you working on the project named bilibili-dl?

yep, currently i work on bilibili clone (SEA version)

I will also help translate some content, but I think the translation of this repo may take a long time. First, for 哔哩哔哩(Bilibili) does not have an official English website or APP (except bilibili.tv, Bilibili's SEA version) , the translation of many proper terms like 投币 needs a uniform standard. What's more, due to the structure of the existing content, it is a bit difficult to submit a translation PR. It is not clear where the translated content should be placed.

It's okay if it takes a long time since the project I'm working on is only for my hobby and learning new stuff.

I fully understand that this will be difficult to do because of the existing structure and it will definitely be a big work, so I will not force anyone and while waiting I will try to understand it using the existing translation tools 😸

thanks for your response @cxw620 @MineCreeper86

xiaoyv404 commented 1 year ago

We'll go ahead and try to support i18n, and the project will be completely refactored to facilitate the use of a parser that can generate code in a variety of languages. At that point, I think it will be easier to add i18n support. See #604

RealYukiSan commented 1 year ago

Awesome! I'm looking forward to it 🐈

cxw620 commented 1 year ago

i suppose that would be a big work but meanwhile meaningful one are you working on the project named bilibili-dl?

yep, currently i work on bilibili clone (SEA version)

Well, Bilibili SEA is separated and independent from Bilibili now, you have better to pay attention to the difference between their APIs. For example, Bilibili SEA service doesn't make use of gRPC, and playurl API has many unique params to determine users' location (Bilibili SEA only offers its service in South East Asia). You may need to determine API's request parameters by decompiling the Bilibili SEA offcial app or by network capture.

This repo currently only collects and focus on Bilibili(China version, service area includes CN Mainland, CN HK, CN MO and CN TW)'s API, not Bilibili(SEA version). This's what I want to call your attention to. But I don't know if we would also collect Bilibili(SEA)'s API in the future (that's not difficult, I think, for the APIs are similar), for Bilibili Corp is increasingly focusing on business in SEA. If needed, I may contribute to the repo adding some playurl and search API I collected and making use of.

RealYukiSan commented 1 year ago

Naruhodo, if I look at it, indeed the API seems similliar. If I may, why the playurl need many unique params to determine users' location btw? is that for algorithm purpose to manage recommended videos or something like that?

You may need to determine API's request parameters by decompiling the Bilibili SEA offcial app or by network capture.

Okay, I will try to observe the network traffic on chrome devtools then.

If needed, I may contribute to the repo adding some playurl and search API I collected and making use of.

If you are interested, you can contribute to building a public collection API via Postman. or even in the project source code, are welcome 😸 I've also provided a live preview (although it is still in development).

Thanks for your information and advice!

cxw620 commented 1 year ago

Naruhodo, if I look at it, indeed the API seems similliar. If I may, why the playurl need many unique params to determine users' location btw? is that for algorithm purpose to manage recommended videos or something like that?

For applying area limitation, I think. Bilibili SEA's offcial app will verify both your phone's SIM card and geographic location of access IP. But we only need to simply imitate the network request of the official APP. Web API only requires that your geographic location of access IP is SEA.

If you are interested, you can contribute to building a public collection API via Postman. or even in the project source code, are welcome 😸 I've also provided a live preview (although it is still in development).

When I'm free I'm happy to help to do so :)

MoRanYue commented 11 months ago

the documents are too large, i think translating them will spend a long time.