25

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
  • 1,137
  • 5
  • 14
  • 24

1 Answers1

13

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.

Mark Gibaud
  • 2,061
  • 23
  • 35
  • I have tried it, but it is not so good as cheerio – Jesus_Maria Dec 09 '15 at 10:15
  • Probably 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 ;-) – Mark Gibaud Dec 15 '15 at 10:49
  • X-ray combines HTTP request making and data extraction. In that sense, it is more similar to Scrappy than no BeautifulSoup. A closer library is https://github.com/gajus/surgeon. – Gajus Aug 01 '19 at 14:35