Do not actively update | Do not refuse to use | Not responsible for maintenance
Bika3 is a third-party Bika comic client on the Windows platform. This project is only for learning and communication. It cannot be closed source and commercial use is strictly prohibited.
bika3.exe
If you're using Windows 10, install the following to improve your experience:
Do not delete anything in the folder at will, otherwise it may cause inoperability problems.
If you encounter network problems, please use a proxy.
This application is in the early development stage and its functionality is not yet complete.
Thanks to the following projects:
CoreApi is a PicACG api wrapper for dotnet.
var client = new Pica3 . CoreApi . PicaClient ( ) ;
await client . LoginAsync ( " account " , " password " ) ;
// Then do any other thing, see method comment for more information.
Diversion uses IP instead of domain name to bypass SNI blocking. PicaClient has a built-in diversion function.
Api offload
// 获取分流 IP
List < string > ipList = client . GetIpListAsync ( ) ;
// 以上方法的返回值只有 IP,不包含 https:// 前缀
Uri uri = new Uri ( " https://172.67.7.24 " ) ;
// 构造时设置分流
var client = new Pica3 . CoreApi . PicaClient ( proxy : null , address : uri ) ;
// 也可以在构造后修改
client . ChangeProxyAndBaseAddress ( proxy : null , address : uri ) ;
// 后续的请求均发送至指定的 IP
Picture diversion
// 图片链接
const string url = " ... " ;
// 访问图片不需要鉴权,此方法发出的请求不会携带账号信息
HttpResponseMessage response = await client . GetImageResponseAsync ( url ) ;
byte [ ] bytes = await response . Content . ReadAsByteArrayAsync ( ) ;
The offloading function is very easy to implement. Just replace the domain name in the link with IP, and then manually add the domain name to the Header. However, it should be noted that some image links may be redirected to a new address. The original link cannot be diverted, and the new address after redirection needs to be used. Fortunately, the rules of redirection are very obvious.
The following examples have met the current needs. There may be other rules. I will add more after encountering them.
# 登录
url : https://picaapi.picacomic.com/auth/sign-in
--- >
url : https://172.67.7.24/auth/sign-in
header :
Host : picaapi.picacomic.com
# 漫画正文图片(无重定向)
url : https://storage1.picacomic.com/static/ed8caaeb-fe13-4363-9387-d5c6f2867cb1.jpg
--- >
url : https://172.67.7.24/static/ed8caaeb-fe13-4363-9387-d5c6f2867cb1.jpg
header :
Host : storage1.picacomic.com
# 漫画封面图片
url : https://storage1.picacomic.com/static/tobeimg/6YdZfey4tqYNaWfyZzOiRXssvxY8yZDoTXVH2BrL62Q/rs:fill:300:400:0/g:sm/aHR0cHM6Ly9zdG9yYWdlMS5waWNhY29taWMuY29tL3N0YXRpYy8wMDJhNzZmYi0wY2Q1LTQ4ODktOWQwMC01ODFhMDUyN2Q3YzkuanBn.jpg
# 重定向到不同域名
# -- https://img.picacomic.com/6YdZfey4tqYNaWfyZzOiRXssvxY8yZDoTXVH2BrL62Q/rs:fill:300:400:0/g:sm/aHR0cHM6Ly9zdG9yYWdlMS5waWNhY29taWMuY29tL3N0YXRpYy8wMDJhNzZmYi0wY2Q1LTQ4ODktOWQwMC01ODFhMDUyN2Q3YzkuanBn.jpg
--- >
url : https://172.67.7.24/6YdZfey4tqYNaWfyZzOiRXssvxY8yZDoTXVH2BrL62Q/rs:fill:300:400:0/g:sm/aHR0cHM6Ly9zdG9yYWdlMS5waWNhY29taWMuY29tL3N0YXRpYy8wMDJhNzZmYi0wY2Q1LTQ4ODktOWQwMC01ODFhMDUyN2Q3YzkuanBn.jpg
header :
Host : img.picacomic.com
# 个人头像图片
url : https://storage-b.picacomic.com/static/tobs/c86fa457-7843-456a-8572-c77adbaedc5b.jpg
# 重定向到相同域名
# -- https://storage-b.picacomic.com/static/c86fa457-7843-456a-8572-c77adbaedc5b.jpg
--- >
url : https://172.67.7.24/static/c86fa457-7843-456a-8572-c77adbaedc5b.jpg
header :
Host : storage-b.picacomic.com