mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-21 22:16:18 +00:00
parent
8e69bb85bc
commit
a368f2e625
2 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,7 @@ impl Auto {
|
|||
let t0 = now_sec();
|
||||
|
||||
let n_coroutines = if supermercado == Supermercado::Coto {
|
||||
50
|
||||
10
|
||||
} else {
|
||||
env::var("N_COROUTINES")
|
||||
.map_or(Ok(24), |s| s.parse::<usize>())
|
||||
|
|
|
@ -125,6 +125,9 @@ impl Scraper {
|
|||
tracing::error!(error=%err, url=url);
|
||||
}
|
||||
}
|
||||
if url.contains("cotodigital") {
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
|
||||
}
|
||||
counters
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue