Skip to content

Instantly share code, notes, and snippets.

@EpocSquadron
Created August 15, 2013 16:03
Show Gist options
  • Save EpocSquadron/6242058 to your computer and use it in GitHub Desktop.
Save EpocSquadron/6242058 to your computer and use it in GitHub Desktop.
Crawl pages from a csv file
#!/bin/bash
cat "$1" | while read line; do
./pngtake.sh $line
done
echo "Done."
exit 0
#!/bin/bash
line=$1
echo "Generation 1920px wide screenshot for url $line.."
webkit2png --dir=screenshots-1920 \
--width=1920 \
--fullsize \
"http://`echo $line | tr -d ' '`"
echo "Generation 1024px wide screenshot for url $line.."
webkit2png --dir=screenshots-1024 \
--width=1024 \
--fullsize \
"http://`echo $line | tr -d ' '`"
echo "Generation 320px wide screenshot for url $line.."
webkit2png --dir=screenshots-320 \
--width=320 \
--fullsize \
"http://`echo $line | tr -d ' '`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment