Open eklem opened 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
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.
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