Automated screenshots for a list of URLs at various device widths.
Install setuptools, pip and brew the NPR News Apps way (chapters 0 and 1): http://blog.apps.npr.org/2013/06/06/how-to-setup-a-developers-environment.html
Create a virtual environment to isolation your packages:
mkvirtualenv screenshots
brew install imagemagick
pip install selenium
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install imgdiff
cd path/to/project/
git clone [email protected]:gotoplanb/screenshots.git
cp settings-example.py settings.py
- Edit
screenshot.py
to comment out the login section if you don't need authentication stuff - Edit
bootstrap.py
to comment out the login section if you don't need authentication stuff - Edit
settings.py
and add as many URLs as you want to screenshot - Run
python bootstrap.py
to create the first batch of images. You just have to do this once.
python screenshot.py