Lukas Sirhal
04/06/2025, 4:20 PMLukas Celnar
04/07/2025, 9:50 AMLukas Sirhal
04/09/2025, 7:52 PMLouis Deconinck
04/11/2025, 9:39 PMLukas Sirhal
04/12/2025, 6:51 AMLukas Sirhal
04/12/2025, 6:52 AMconst gotResponse = await gotScraping({
url: `https://www.idealista.com/${pageCountry}/ajax/ads/${output.id}/contact-phones`,
headers:{
accept:'application/json, text/javascript, */*; q=0.01',
'accept-language':'en-US,en;q=0.9',
referer: output.url,
'user-agent':'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36',
'x-requested-with':'XMLHttpRequest',
Connection: 'keep-alive',
// Cookie: cookieHeader,
},
proxyUrl: await proxyConfiguration.newUrl(session.id),
});
console.log(gotResponse.statusCode);
but the result is sameluigi.ruocco
04/14/2025, 1:58 PMevaluate
to perform the request in the browser console https://playwright.dev/docs/evaluating
https://pptr.dev/api/puppeteer.page.evaluate