1. import urllib2, itertools
  2. imgur = "http://imgur.com/"
  3. l1 = ['b','B','8']
  4. l2 = ['o','O','0']
  5. l3 = ['o','O','0']
  6. l4 = ['b','B','8']
  7. l5 = ['s','S','5']
  8. for name in itertools.product(l1,l2,l3,l4,l5): #Iterates through combinations
  9. name = ''.join(name) # Converts from list to string
  10. try:
  11. urllib2.urlopen( urllib2.Request( imgur+name ) ) #Tests the page
  12. print imgur+name #print url
  13. except:
  14. pass #Page did not exist