1. import urllib2, itertools
  2. imgur = "http://imgur.com/"
  3. g = ['g','G','9','6']
  4. a = ['a','A','4']
  5. b = ['b','B','8','6']
  6. e = ['e','E','3']
  7. n = ['n','N']
  8. for name in itertools.product(g,a,b,e,n): #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