senthilp / spofcheck

A CLI tool for detecting frontend SPOF
Other
33 stars 2 forks source link

Possible to run check by providing page code directly? #3

Open kskoeld opened 7 years ago

kskoeld commented 7 years ago

I would like to be able to send the use the source code of pages directly and have the check done. So instead of triggering a request to retrieve the current source code of a page I could also feed in historical data as collected by WPT or httpArchive and stored as .har files with saved response bodies. Is there already maybe a simple way to do that? Providing a JSON with the urls and corresponding bodies for a page would be easy enough to achieve.

senthilp commented 7 years ago

This may need some refactoring. But if you want to pass a list of URLs, you can still do it using the Programmable API, where you need to write a wrapper to read the .har files and pass in the URLs. Will keep the issue open and work on it when time permits.