Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

byrdr grabber

By: a guest on Mar 13th, 2013  |  syntax: Python  |  size: 0.35 KB  |  views: 55  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import urllib
  2. count = 0
  3. for i in range(9999):
  4.     d = "%04d" % i
  5.     f = urllib.urlopen("http://byrdr.com/"+d)
  6.     s = f.read();
  7.     if "is already on Byrdr" in s:
  8.         count += 1
  9.         name = s.split("<p>")[2]
  10.         name = name[8:name.index("(")]
  11.         print name +": http://byrdr.com/"+d
  12.     f.close();
  13. print "TOTAL NAMES: %d" % count