Crates.io | shuller |
lib.rs | shuller |
version | 2.0.7 |
source | src |
created_at | 2024-06-30 16:24:47.521916 |
updated_at | 2024-08-20 20:15:08.185704 |
description | Lib to get links to images for your favourite tags on rule34 and any |
homepage | |
repository | https://github.com/TOwInOK/shuller |
max_upload_size | |
id | 1288081 |
size | 46,879 |
Library for link fetching from Rule34 and other implementable sites
Note for learn more info about this lib check doc.rs on crates.io
use shuller::prelude::*;
async fn example() {
let instance: Posts = R34Params::init()
.positive_tags(vec!["dark", "fish"])
.negative_tags(vec!["ai_generated"])
.limit(3)
.download() // or url_generate()
.await
.unwrap();
println!("{:#?}", instance.get_urls_ext())
}
use shuller::prelude::*;
async fn macro_normal() {
let instance = R34!(
p = vec!["dark", "fish"],
n = vec!["ai_generated"],
limit = 2,
page = 2
)
.download()
.await
.unwrap(); // handle error
}
use shuller::prelude::*;
async fn macro_download() {
let instance = R34!(D;
p = vec!["dark", "fish"],
n = vec!["ai_generated"],
limit = 2,
page = 2
)
.unwrap(); // handle error
}
use shuller::prelude::*;
async fn macro_url() {
let instance = R34!(U;
p = vec!["dark", "fish"],
n = vec!["ai_generated"],
limit = 2,
page = 2
);
}
use shuller::prelude::*;
async fn r() {
let params = R34!(R;);
let url = R34!(R; D);
let posts = R34!(R; U).unwrap(); // handle error
}