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

make a query execution traverser #36

Closed andykais closed 4 years ago

andykais commented 5 years ago

the ordered scraper query is fairly complex, and debugging it can be difficult. An idea springs to mind where we add some debug blocks to the scraper and then can choose to output the query plan. Things in the debug blocks:

somehow we plug this in. Maybe a flag on params and a wrapper on the query statement that consumes the output, then plays it back at 1 second intervals to show how the data moves at each step in the recursion.