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

171
Views
Recibo este error cuando ejecuto mi archivo index.js... lanza un nuevo error ('El contexto de ejecución fue destruido, muy probablemente debido a una navegación');

He proporcionado el código a continuación, ¿puede decirme por qué obtendría este error? Estoy tratando de extraer información de un sitio web para colocarla en un sitio web que estoy creando, ya tengo permiso para hacerlo. La información que estoy tratando de extraer de la web es el nombre del evento, la hora del evento, la ubicación del evento y la descripción del evento... Vi este tutorial en YouTube, pero por alguna razón obtengo este error al ejecutar ming.

 sync function scrapeProduct(url){ const browser = await puppeteer.launch(); const page = await browser.newPage(); page.goto(url); const [el] = await page.$x('//*[@id="calendar-events-day"]/ul/li[1]/h3/a'); const txt = await el.getProperty('textContent') const rawTxt = await txt.jsonValue(); const [el1] = await page.$x('//*[@id="calendar-events-day"]/ul/li[1]/time[1]/span[2]'); const txt1 = await el1.getProperty('textContent') const rawTxt1 = await txt1.jsonValue(); console.log({rawTxt, rawTxt1}); browser.close(); } scrapeProduct('https://events.ucf.edu');
about 4 years ago · Santiago Gelvez
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!