Skip to content

mibmo/gelbooru-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gelbooru API

Crates.io

Rudimentary Gelbooru API.

Usage

Fetch latest 20 Safe-rated posts with tags solo and hatsune_miku.

use gelbooru_api::{Client, Rating, posts};

let client = Client::public();
let posts = posts()
	.limit(20)
	.rating(Rating::Safe)
	.tags(&["solo", "hatsune_miku"])
	.send(&client)
	.await?;

for post in posts {
	println!(
		"Post {id} created at {created_at} by {owner} [{image_url}]",
		id = post.id(),
		created_at = post.created_at(),
		owner = post.owner(),
		image_url = post.image_url(),
	);
}

API coverage

  • Authentication
  • Posts
  • Tags
  • Comments

About

Rust API client for the Gelbooru image board

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages