fur
furbooru
cargo install furbooru
fur

furbooru

Furbooru API client in Rust

by Xe Iaso

0.3.3 (see all)License:non-standard
cargo install furbooru
Readme

furbooru

built with nix Rust MIT License Crates.io docs

A Furbooru and Derpibooru client written in Rust. The APIs for these two sites are near identical, so this crate can work with both; however it is optimized for Furbooru. Any time Furbooru diverges from Derpibooru, this crate will follow the Furbooru changes first.

Usage is simple:

let user_agent = format!(
  "{}/{} ({}, +{})",
  env!("CARGO_PKG_NAME"),
  env!("CARGO_PKG_VERSION"),
  std::env::var("API_USERNAME").unwrap(),
  env!("CARGO_PKG_REPOSITORY"),
);

let cli = furbooru::Client::new(
  user_agent,
  std::env::var("API_TOKEN").unwrap(),
)?

Set the environment variables API_USERNAME and API_TOKEN to your Furbooru/Derpibooru username and API token respectively. Adding the username associated with your bot to each request can help the booru staff when your bot does unwanted things like violating rate limits.

See the examples for more ideas.

GitHub Stars

10

LAST COMMIT

10mos ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

4

OPEN PRs

2
VersionTagPublished
0.3.3
2yrs ago
0.3.2
2yrs ago
0.3.1
2yrs ago
0.3.0
2yrs ago
No alternatives found
No tutorials found
Add a tutorial