This tool is meant to help people who need to verify that the Emergency Publishing Banner is live in different pages across GOV.UK website.
It informs via screenshots and textual ouput which pages do not have the banner.
You have two options to install, one uses brew and the other uses npm
$ brew install phantomjs casperjs
$ npm install -g phantomjs casperjs
### Troubleshooting
Sometimes people are unfortunate to have what seems to be a broken installation of casperjs.
Let's double check if you happen to be one of them, please run the following:
$ casperjs selftest
If you happen to receive the following:
$ env: node\r: No such file or directory
Open phantomjs executable with vim
$ vim `which phantomjs`
Then type the following:
:set ff=unix
:x
And run casperjs again.
casperjs scraper.js --env=environment_name
casperjs scraper.js --env=environment_name --paths=/page-1,/page-2,...
casperjs scraper.js --env=environment_name > report.txt
MIT License