diff --git a/src/main.rs b/src/main.rs index e35b948..0dabb0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,15 +3,17 @@ use reqwest::Client; #[tokio::main] async fn main() -> Result<(), Box> { - 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 { r34pid += 42; let r34_url = format!( - "https://rule34.xxx/index.php?page=post&s=list&tags=kaguya_jinguu&pid={}", - r34pid - ); + "https://rule34.xxx/index.php?page=post&s=list&tags={}&pid={}", r34_tags, r34pid); let body = Client::new() .get(r34_url)