Compare commits

..

No commits in common. "351439034eb8f9cc2608ec49dac28ab5c9df7788" and "89830d6e1e155ce963bd101f1f3b41bbee491ec1" have entirely different histories.

2 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,11 @@ async fn main() -> ExitCode {
.unwrap();
for page in args.page - 1.. {
println!("now scraping page {} (https://rule34.xxx/index.php?page=post&s=list&tags={uri_tags}&pid={})", page + 1, page * 42);
println!("now scraping page {}", page + 1);
println!(
"https://rule34.xxx/index.php?page=post&s=list&tags={uri_tags}&pid={}",
page * 42
);
let post_html = async |client: &Client| {
extract_urls(
@ -77,7 +81,7 @@ async fn main() -> ExitCode {
async move {
// "thread"
loop {
this_bar.set_message(format!("\x1b[37m[{i: >4}/{urls_amount}] \x1b[36mscraping {url}\x1b[0m"));
this_bar.set_message(format!("\x1b[37m[{i: >4}/{urls_amount}] \x1b[36mscraping {url:?}\x1b[0m"));
let resp = client.get(&url).send().await.unwrap();
if let Ok(img_url) = extract_img_url(&resp.text().await.unwrap()) {
if img_url.is_empty() {