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

389
Views
Scrapping data with puppeteer in Nodejs, Results are different

I want to scrap the text '1 views' from this URL "https://www.loom.com/share/5b920dc1375f43fa9b622ac0a6ba7c52"
Url of image: https://imgur.com/r8dbUbV

In browser console it gives result perfectly
Url of image: https://imgur.com/Z4XrR3f

but in puppeteer it gives 'Record a loom'
Url of image: https://imgur.com/zL1varD

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I noticed a similar issue when trying different browsers. Your selector worked fine for me in Firefox, but not in Chrome. I'm assuming you are using Chrome with Puppeteer, as it is the default. If that's the case we are likely seeing the same issue. Anyway, try this selector out instead:

document.querySelector(`[class*="header-content"] span:nth-child(2)`)

Happy scraping, and cheers!

about 4 years ago · Juan Pablo Isaza Report
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!