Skip to content

Instantly share code, notes, and snippets.

@kurobeats
Created August 16, 2016 04:25
Show Gist options
  • Select an option

  • Save kurobeats/0e3dc8b13510957fa0dc1fdeea63f210 to your computer and use it in GitHub Desktop.

Select an option

Save kurobeats/0e3dc8b13510957fa0dc1fdeea63f210 to your computer and use it in GitHub Desktop.
Simple screenshot script
#!/bin/bash
while read url
do
timeout 30 phantomjs --ignore-ssl-errors=true /usr/share/phantomjs/examples/rasterize.js "$url" "`echo $url | cut -d "/" -f3`.png"
done < "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment