Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
¿Cómo manejar "aceptar cookies"?

Estoy tratando de hacer un raspador que obtenga las reseñas de hoteles en tripadvisor.com. Solo estaba trabajando con la paginación y probando si el navegador llegaría hasta el final, donde no hay más páginas.

Aquí está mi código hasta ahora:

 const puppeteer = require("puppeteer"); const cheerio = require("cheerio"); async function main() { const browser = await puppeteer.launch({ headless: false }); const page = await browser.newPage(); await page.goto('https://www.tripadvisor.com/Hotels-g298656-Ankara-Hotels.html'); while(true) { await page.click('a[class="nav next ui_button primary"]'); await page.waitForNavigation({waitUntil: 'networkidle0'}); } } main();

Sin embargo, esto se detiene cuando aparece la ventana emergente 'aceptar cookies'. ¿Cómo puedo manejar esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!