Skip to content

An unofficial, minimal wrapper for Waifu.pics, with support for DI and structured logging.

Notifications You must be signed in to change notification settings

WaifuShork/Waifu.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Waifu.NET

Unofficial .NET wrapper for waifu.pics.

Supports both SFW and NSFW endpoints.

Setting up Client

var client = new WaifuClient(new WaifuConfiguration 
{
    // Gives you the option to exclude specific links from queries
    DefaultExcludes = new [] { "exclude links here" },
});

Get Image

var image = await client.GetRandomSfwAsync(SfwCategory.Waifu);
await Console.Out.WriteLineAsync(image);

Get Images

var image = await client.GetManyRandomSfwAsync(SfwCategory.Waifu);
foreach (var image in images)
{
    await Console.Out.WriteLineAsync(image);
}

Todo

  • Fixed logging, it works for now but needs to be better.

About

An unofficial, minimal wrapper for Waifu.pics, with support for DI and structured logging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages