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

207
Views
El webscraper javascript básico arroja un error / ¿XPATH no se resolvió?

Intento escribir un webscraper con la biblioteca Puppeteers. Funcionó correctamente en amazon.com, pero con otra página (coinhall.org) aparece un error que no puedo resolver. Puede alguien señalarme la dirección correcta?

 const [el2] = await page.$x('//*[@id="root"]/div/div[4]/div/div[1]/div[1]/div[2]/div[1]/div[2]/div[1]/div[1]'); const txt = await el2.getProperty('textContent'); const rawTxt = txt.jsonValue();

Error:

 const txt = await el2.getProperty('textContent'); ^ TypeError: Cannot read properties of undefined (reading 'getProperty')

Parece que el12 no obtiene su valor de alguna manera, ¿verdad? Revisé dos veces el XPATH, aunque es correcto.

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!