from Hacker News

Cheerio sandbox to quickly test your selectors

by jetter on 9/4/22, 8:59 AM with 1 comments

  • by jetter on 9/4/22, 8:59 AM

    For me, it is always a pain to write and test cheerio code unless I was doing it on the previous week. The syntax of cheerio is somewhat similar to jQuery, but this is still node.js, and not "real" DOM.

    I was suffering every time I was googling for "Cheerio quick examples", so I have built a cheerio sandbox to quickly test cheerio syntax against various test inputs. This is already helpful for myself and saves me up to 15-30 minutes on every simple scraper I am writing, I think, just because I have working selectors samples at hand and I can quickly test my new selectors.