Crate bilibili_api_rs

source ·
Expand description

bilibili-api-rs is a rust library project got inspiration from bilibili-api.

Currently “GET” apis only. Api interface User, Xlive derive from Client.

Api result is part of response, alike bilibili-api, is response[“data”]. Invalid response treated as error then bail.

High overhead: to anti-detect, client open one whole new connection in every request.

Example

use bilibili_api_rs::Client;
use anyhow::Result;
async fn test_xlive() -> Result<()> {
    let cli = Client::new();
    let xlive = cli.xlive(/*virtual*/9, /*all*/0);
    let lives = xlive.list(2).await?;
    Ok(())
}

Re-exports

Modules

  • WBI means “web bibilili interface”.

Traits

  • Lodash-like get helper, implemented for serde_json