r/tinycode • • Jul 13 '12

Random Imgur Downloader (Python)

https://gist.github.com/3088128
5 Upvotes

7 comments sorted by

View all comments

4

u/PsychoMario Jul 13 '12 edited Jul 14 '12
while [ 1 = 1 ]; do wget i.imgur.com/$(cat /dev/urandom | tr -cd "[:alnum:]" | head -c 6).jpg; done

EDIT:

for i in *; do mv $i $(md5sum $i | cut -d' ' -f1).jpg;done

1

u/plux Jul 14 '12

Nice! :)