BeautifulSoup like scraper for nodejs
15,158
I suggest you check out the x-ray node package. It is essentially an abstraction layer above cheerio that makes the code you need to 'structure any website' even more terse.
It has a composable syntax in style and it supports pagination, limiting/throttling, delaying, scraping collections etc.
Related videos on Youtube
Author by
Jesus_Maria
Updated on June 15, 2022Comments
-
Jesus_Maria almost 2 years
I am former python developer and I have used BS4 for couple of years Now I am developing with node and yes cheerio package is very good, but I need smth like BS4 for scraping in node
Is there some alternatives for cheerio? Thanks!
-
Jesus_Maria over 8 yearsI have tried it, but it is not so good as cheerio
-
Mark Gibaud over 8 yearsProbably useful for you to know that x-ray is built by the same author as cheerio, and he built x-ray after cheerio. Thus has a higher level of abstraction ;-)
-
Gajus over 4 yearsX-ray combines HTTP request making and data extraction. In that sense, it is more similar to Scrappy than no BeautifulSoup. A closer library is github.com/gajus/surgeon.