fergiemcdowall / norch-document-processor

A library for parsing HTML into any sort of JSON you want
MIT License
9 stars 4 forks source link

CSS selector testing #5

Open eklem opened 10 years ago

eklem commented 10 years ago

When developing an adaptor, it could be nice to check selectors against a document and see the json output. Like this one: http://videlibri.sourceforge.net/cgi-bin/xidelcgi

Important that it follows/uses the cheerio library that the norch-document-processor is based on: https://www.npmjs.org/package/cheerio

Cheerio is a bit limited compared to jQuery selectors: http://stackoverflow.com/questions/21375680/cheerio-js-html

eklem commented 10 years ago

Seems cheerio-tester could do the trick: https://github.com/luin/cheerio-tester https://github.com/luin/cheerio-tester/issues/1

I'll have a go later.