SHARE
TWEET

jailbaitgallery.com Photo Parser

kubas89 Jun 17th, 2011 943 Never
  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
RAW Paste Data
Top