Created
August 14, 2014 00:12
-
-
Save metalefty/be189465088131ac4fd6 to your computer and use it in GitHub Desktop.
d250g2っぽいのを収集するスクリプト
This file contains 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
#!/usr/bin/env zsh | |
for i in {$(( 36#d240g2 ))..$(( 36#d300g2 ))} | |
do | |
FILENAME=$(echo $(( [##36] 10#$i )) | tr '[A-Z]' '[a-z]') | |
if [ -e $FILENAME ] | |
then | |
echo "S: $FILENAME" | |
continue; | |
fi | |
echo "F: $FILENAME" | |
wget -q --no-check-certificate http://twitpic.com/show/full/$FILENAME && \ | |
sleep $(( $(od -vAn -N4 -tu4 < /dev/random) % 60 )) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment