• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

107
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 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It's a sibling:

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

or possibly:

$(el).next().next().text()
about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error