{"id":18074258,"url":"https://github.com/cijiugechu/booru","last_synced_at":"2025-09-19T10:20:32.170Z","repository":{"id":197246551,"uuid":"698322423","full_name":"cijiugechu/booru","owner":"cijiugechu","description":"An async Booru client for Rust","archived":false,"fork":false,"pushed_at":"2024-08-31T02:54:30.000Z","size":121,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T05:52:27.111Z","etag":null,"topics":["api","booru","client","danbooru","gelbooru","rule34","rust","safebooru"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cijiugechu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-29T16:46:11.000Z","updated_at":"2024-08-31T02:54:34.000Z","dependencies_parsed_at":"2024-10-31T10:12:08.312Z","dependency_job_id":"fcf0b1ae-1cda-461a-9323-74de6f306933","html_url":"https://github.com/cijiugechu/booru","commit_stats":null,"previous_names":["cijiugechu/booru"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fbooru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fbooru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fbooru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fbooru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cijiugechu","download_url":"https://codeload.github.com/cijiugechu/booru/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525156,"owners_count":21118616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","booru","client","danbooru","gelbooru","rule34","rust","safebooru"],"created_at":"2024-10-31T10:11:55.034Z","updated_at":"2025-09-19T10:20:27.118Z","avatar_url":"https://github.com/cijiugechu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Cargo](https://img.shields.io/crates/v/booru.svg)](https://crates.io/crates/booru) [![Documentation](https://docs.rs/booru/badge.svg)](https://docs.rs/booru)\n# `booru`\nAn async Booru client for Rust.\n\n\u003e Note: This project has been forked from [booru-rs](https://github.com/ajiiisai/booru-rs) since September of 2023, but a lot has changed.\n\n##  Overview\nThe client currently supports:\n- [x] Gelbooru\n- [x] Safebooru\n- [x] Danbooru\n- [x] Rule 34\n\n## Example\n\nRemember to bring the `Client` trait into scope with `use booru::client::Client;`.\n```rust\nuse booru::{\n        client::{gelbooru::GelbooruClient, generic::*, Client},\n        model::gelbooru::GelbooruRating,\n    };\n\n#[tokio::main]\nasync fn main() {\n    let posts = GelbooruClient::builder()\n        .tag(\"kafuu_chino\")\n        .tag(\"2girls\")\n        .rating(GelbooruRating::General)\n        .sort(Sort::Score)\n        .limit(5)\n        .random()\n        .blacklist_tag(GelbooruRating::Explicit)\n        .build()\n        .get()\n        .await\n        .expect(\"There was an error retrieving posts from the API\");\n}\n```\n\n### Customizing http client\n\nIf you want to customize http client, you can use `builder_with_http_client`:\n```rust\nuse booru::{\n        client::{gelbooru::GelbooruClient, generic::*, Client},\n        model::gelbooru::GelbooruRating,\n    };\nuse reqwest;\nuse std::time::Duration;\n\n#[tokio::main]\nasync fn main() {\n    let http_client_builder = reqwest::ClientBuilder::new()\n                            .timeout(Duration::from_secs(10));\n\n    let posts = GelbooruClient::builder_with_http_client(http_client_builder)\n        .tag(\"kafuu_chino\")\n        .limit(5)\n        .build()\n        .get()\n        .await\n        .expect(\"There was an error retrieving posts from the API\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fbooru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcijiugechu%2Fbooru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fbooru/lists"}