Created
August 15, 2013 16:03
-
-
Save EpocSquadron/6242058 to your computer and use it in GitHub Desktop.
Crawl pages from a csv file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat "$1" | while read line; do | |
./pngtake.sh $line | |
done | |
echo "Done." | |
exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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