I have noticed a difference when using the with_limit configuration when switching between the chrome feature and default features.
Example
use spider::tokio;
use spider::website::Website;
#[tokio::main]
async fn main() {
let target = "https://crawler-test.com/";
for i in [1, 2] {
let mut website: Website = Website::new(target).with_limit(i).build().unwrap();
website.scrape().await;
let pages = website.get_pages().unwrap();
if pages.iter().count() == 0 {
println!("with_limit({}) - No pages", i);
}
for page in pages.iter() {
println!(
"with_limit({}) - {:?} {:?}",
i,
page.get_url(),
page.status_code
);
}
}
}
Hi
I have noticed a difference when using the with_limit configuration when switching between the chrome feature and default features.
With no features enabled i get this output:
With
chrome
andchrome_cpu
i get