BiliSharp 0.0.2

dotnet add package BiliSharp --version 0.0.2                
NuGet\Install-Package BiliSharp -Version 0.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BiliSharp" Version="0.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BiliSharp --version 0.0.2                
#r "nuget: BiliSharp, 0.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BiliSharp as a Cake Addin
#addin nuget:?package=BiliSharp&version=0.0.2

// Install BiliSharp as a Cake Tool
#tool nuget:?package=BiliSharp&version=0.0.2                

BiliSharp

哔哩哔哩 API 的实用包装

C# NuGet
NuGet License

特性

  • 视频操作
    • 基本信息
    • 点赞/投币/收藏
    • 一键三连

更多功能正在开发中...

安装

dotnet add package BiliSharp

示例

查询视频 av810872 的信息

using BiliSharp;
using BiliSharp.Models;

// 使用 av 号初始化视频实例
var video = new BiliVideo(810872);

Console.WriteLine($"BV号:{video.BvId}");

// 获取视频信息
var info = video.GetInfo();

Console.WriteLine($"标题:{info.Title}");
Console.WriteLine($"UP:{info.Owner.Name}");
Console.WriteLine($"简介:{info.Description}");

输出:

BV号:BV1Js411o76u
标题:【炮姐/AMV】我永远都会守护在你的身边!
UP:暗猫の祝福
简介:自制 本人的第二个AMV作品,从妹妹篇结束后便开始构思了,具体九月开始挖的坑,于2013年10月26日完稿。
顺便联动一下我的魔禁/超炮AMV:av4545451
记得让弹幕多样化一些噢~喜欢的话点个关注,大感谢~

三连视频:
首先获取认证信息

var credential = new BiliCredential
{
    SessData = "<SESSDATA 值>",
    BiliJct = "<bili_jct> 值",
    Buvid3 = "<buvid3 值>",
};

var video = new BiliVideo(170001, credential);

video.SetTriple();

许可证

本项目遵循 MIT 许可证开源,欢迎参与贡献。

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.2 273 7/3/2022
0.0.1 223 7/3/2022