Would something like this work for single-page applications? Given that most applications today are built entirely through the DOM, would regex matching on embedded scripts be that useful?
I've actually started thinking about how to build a spidering/scraping tool that extracts links/JS, etc from an SPA but would rather not reinvent the wheel if possible.
Edit: Though the way it works as a sort of proxy, it seems like you could combine it with something like this, and it would just work: https://github.com/naoak/chrome-site-spider