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

163
Views
Can't get a raw href out of html code using a web-scraping js script

I am a little bit of a noob and I am trying to make a script that scrapes a specific website. I am trying to get a link out of the HTML code of that website with getProperty, but it doesn't work, and I don't know how I can solve this. Could anyone help me?

const link = await page.$x('/html/body/div[4]/div[3]/div/div[2]/div/div/div/div/div[1]/div/div[1]');
const linkurl = await link.getProperty('href');
const tags = url.querySelector('href');
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!