Cheerio Scraper avatar

Cheerio Scraper

Try for free

No credit card required

View all Actors
Cheerio Scraper

Cheerio Scraper

apify/cheerio-scraper
Try for free

No credit card required

Crawls websites using raw HTTP requests, parses the HTML with the Cheerio library, and extracts data from the pages using a Node.js code. Supports both recursive crawling and lists of URLs. This actor is a high-performance alternative to apify/web-scraper for websites that do not require JavaScript.

Do you want to learn more about this Actor?

Get a demo
proloser avatar

Tried migrating from Web Crawler but `cheerio().map()` doesn't seem to work the same

Closed

Dean Sofer (proloser) opened this issue
a month ago

I got most of the original logic working, but the 2 fields I generate by mapping over elements and returning a property of that element doesn't seem to be working. I can't tell if the mapping is broken or if the element doesn't actually contain a property in this worker.

The fields that are showing up empty are details and categories, whereas details was a large block of HTML, categories was actually a couple of strings and should be trivial

proloser avatar

Figured it out. Man the cheerio documentation is kind of a headache. Thanks for pointing this idea out to me, it works great!

Developer
Maintained by Apify
Actor metrics
  • 536 monthly users
  • 77 stars
  • 100.0% runs succeeded
  • 1.5 days response time
  • Created in Apr 2019
  • Modified 3 months ago