| Crates.io | dlsite-gamebox |
| lib.rs | dlsite-gamebox |
| version | 0.3.0 |
| created_at | 2025-10-29 05:20:05.617463+00 |
| updated_at | 2025-10-29 05:37:32.108971+00 |
| description | High-performance DLsite client with caching, parallel parsing, and streaming support |
| homepage | |
| repository | https://github.com/SuperToolman/dlsite-gamebox |
| max_upload_size | |
| id | 1906094 |
| size | 224,915 |
This is a library to get information about products on DLsite. Some information is not available on the HTML page, so this library also makes requests to the AJAX API.
Get product by api
use dlsite_gamebox::DlsiteClient;
#[tokio::main]
async fn main() {
let client = DlsiteClient::default();
let product = client.product_api().get("RJ01014447").await.unwrap();
assert_eq!(product.creators.unwrap().voice_by.unwrap()[0].name, "佐倉綾音");
}
Search products
use dlsite_gamebox::{DlsiteClient, client::search::SearchProductQuery, interface::query::*};
#[tokio::main]
async fn main() {
let client = DlsiteClient::default();
let product = client
.search()
.search_product(&SearchProductQuery {
sex_category: Some(vec![SexCategory::Male]),
keyword: Some("ASMR".to_string()),
..Default::default()
})
.await
.expect("Failed to search");
dbg!(&product);
}