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

143
Views
cheerio not picking up particular elements

Hi trying to use cheerio to scrape this https://davesgarden.com/guides/pf/finder/index.php?sname=Hibiscus&page=1 , and can access some elements such as the menu items, but not the plant names which i need. Im using this code to try get the plant names

const $ = cheerio.load(data);

$('#contAfterAds > div > div.plant-info > div > a').each((_idx, el) => {
            const postTitle = $(el).text()
            postTitles.push(postTitle)
        });

but no luck, any suggestions? Ive seen that angular sites cant be scraped, could it be a similar problem?

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

0

It's a sibling:

$(el).next().text()

or possibly:

$(el).next().next().text()
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!