andykais / scrape-pages

generalized scraper using a single instruction set for any site that can be statically scraped
https://scrape-pages.js.org
MIT License
6 stars 2 forks source link

EVAL command #53

Open andykais opened 4 years ago

andykais commented 4 years ago

There are times when data is sent up inside a js file. It is tricky to get this data out of there with just a regex replace & json parser. Suggesting a command like so:

EVAL 'some_data_object.data'

where value is evaled and then the code supplied is executed and the resulting value is JSON.stringified. Alternatively we could create a PARSE 'some_data_object.data' FORMAT='js' which would function largely in the same way