coto: hacer páginas más chiquitas

This commit is contained in:
Cat /dev/Nulo 2024-06-17 21:04:28 -03:00
parent 38b6b62aba
commit 74640df37e

View file

@ -82,7 +82,7 @@ pub async fn get_urls() -> anyhow::Result<Vec<String>> {
let client = build_client(); let client = build_client();
let initial = Url::parse("https://www.cotodigital3.com.ar/sitios/cdigi/browse?Nf=product.endDate%7CGTEQ+1.7032032E12%7C%7Cproduct.startDate%7CLTEQ+1.7032032E12&Nr=AND%28product.sDisp_200%3A1004%2Cproduct.language%3Aespa%C3%B1ol%2COR%28product.siteId%3ACotoDigital%29%29")?; let initial = Url::parse("https://www.cotodigital3.com.ar/sitios/cdigi/browse?Nf=product.endDate%7CGTEQ+1.7032032E12%7C%7Cproduct.startDate%7CLTEQ+1.7032032E12&Nr=AND%28product.sDisp_200%3A1004%2Cproduct.language%3Aespa%C3%B1ol%2COR%28product.siteId%3ACotoDigital%29%29")?;
let page_size = 100; let page_size = 50;
let handles: Vec<Vec<String>> = stream::iter(0..29000 / page_size) let handles: Vec<Vec<String>> = stream::iter(0..29000 / page_size)
.map(|i| { .map(|i| {
let mut u = initial.clone(); let mut u = initial.clone();