Compare commits

..

No commits in common. "08ed5e51f27ec075458c070c08668d5460e16a3d" and "ee0e9387822a404e61fa5d93dba784fab976afba" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -14,12 +14,8 @@ pub struct Args {
#[arg(short, long)] #[arg(short, long)]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
/// Page to start scraping from
#[arg(short, long, default_value_t = 1)]
pub page: usize,
/// Async jobs to use for fetching /// Async jobs to use for fetching
#[arg(short, long, default_value_t = 4)] #[arg(short, long, default_value = "4")]
pub jobs: usize, pub jobs: usize,
/// Delay for rate-limits (ms) /// Delay for rate-limits (ms)

View File

@ -39,7 +39,7 @@ async fn main() -> ExitCode {
.build() .build()
.unwrap(); .unwrap();
for page in args.page - 1.. { for page in 0.. {
println!("now scraping page {}", page + 1); println!("now scraping page {}", page + 1);
println!( println!(
"https://rule34.xxx/index.php?page=post&s=list&tags={uri_tags}&pid={}", "https://rule34.xxx/index.php?page=post&s=list&tags={uri_tags}&pid={}",