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

jailbaitgallery.com Photo Parser

By: kubas89 on Jun 17th, 2011  |  syntax: Python  |  size: 0.63 KB  |  views: 822  |  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. #!/usr/bin/python
  2.  
  3. # jailbaitgallery.com Photo Parser
  4.  
  5. import urllib2
  6. import re
  7. import os
  8. from os.path import basename
  9. from urlparse import urlsplit
  10.  
  11. for i in range(1,90000):
  12.         url = "http://jailbaitgallery.com/index.php?id=" + str(i)
  13.         try:
  14.                 urlContent = urllib2.urlopen(url).read()
  15.                 imgUrls = re.findall('img .*?src="resized(.*?)"', urlContent)
  16.         except:
  17.                 pass
  18.  
  19.         link = 'http://jailbaitgallery.com/resized' + imgUrls[0]
  20.        
  21.         if link != 'http://jailbaitgallery.com/resized':
  22.                 print str(i) + ": " + link
  23.                 os.system('wget --connect-timeout=10 --waitretry=8 --limit-rate=30k --output-file=jb.log ' + link)
  24.         else:
  25.                 pass