I use it to test my Content-Security-Policy by crawling my whole site and capturing any violation reports that are sent.
Mind sharing your script?
This has been absorbed into an internal repo now, but the original version that I wrote a couple of years ago is here: https://gitlab.com/jamieweb/travis-ci_csp-tester/