added tag selector

This commit is contained in:
danmax 2024-10-15 00:35:29 -04:00
parent 36c0bfb0fe
commit 4116d8a8d4

View File

@ -3,15 +3,17 @@ use reqwest::Client;
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut r34pid = -42; let mut r34_tags = String::new();
println!("which tags do you want to scrape? ex: 1girls+1boys+yomama");
std::io::stdin().read_line(&mut r34_tags).unwrap();
r34_tags.trim().to_string();
let mut r34pid = -42;
loop { loop {
r34pid += 42; r34pid += 42;
let r34_url = format!( let r34_url = format!(
"https://rule34.xxx/index.php?page=post&s=list&tags=kaguya_jinguu&pid={}", "https://rule34.xxx/index.php?page=post&s=list&tags={}&pid={}", r34_tags, r34pid);
r34pid
);
let body = Client::new() let body = Client::new()
.get(r34_url) .get(r34_url)