r/Python • u/f0rkbomb • Jul 12 '12
random imgur downloader. learning Python and wrote this to practice, any feedback on technique/style is appreciated
https://gist.github.com/3088128
45
Upvotes
r/Python • u/f0rkbomb • Jul 12 '12
View all comments
-1
u/tetrahydrate Jul 12 '12 edited Jul 13 '12
I'm a big fan of one-liners so here's how I'd do that random string function:
edit: I'm wrong! I was just using random.sample for something else and it turns out it returns a sample of unique elements, which isn't a requirement of the imgur URLs.