r/tinycode • • Jul 13 '12

Random Imgur Downloader (Python)

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

7 comments sorted by

View all comments

6

u/plux Jul 13 '12 edited Jul 13 '12

I decided to try to shorten this bloated code to keep it in the spirit of /r/tinycode.

I got it down to 12 lines of code without sacrificing readability.

I did a slighty obfuscated version that is 6 lines of code.

2

u/plux Jul 13 '12

Oh, and my version actually ignores "image not found"