Yande.re / konachan.net / lolibooru.moe random picture api 随机色图Api
C# library for getting random images on yande.re / konachan.net / lolibooru.moe 一个请求 Yande.re / konachan.net / lolibooru.moe 获取色图的 C# 库
public static async void Main()
{
BaseClient client = await YandeClient.CreateNew(); //optional parameter filter by tag 可选 Tag 参数过滤
//KonachanClient
//LolibooruClient
PictureItem item = await client.GetRandom(Rating.Safe);
string imgUrl = item.BigImgUrl; //Source picture url 大图(原图)URL
// Or
foreach (var item in client.PictureList)
{
string imgUrl = await item.GetBigImgUrl(); //Source picture url 大图(原图)URL
}
}
Install as NuGet package
使用NuGet包安装
Install-Package Yande.re.Api