Guest User

Untitled

a guest
Jun 16th, 2011
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2.  
  3. import re;
  4. import urllib2;
  5.  
  6. url = "http://afghanant.wordpress.com/2009/11/07/hiwainaru-fantasy-xiii-final-fantasy-xiii-lightning-hentai/";
  7. source = urllib2.urlopen(url).read();
  8. pattern = re.compile(r'(http://afghanant.files.wordpress.com/2009/10/[0-9]{2}\.jpg)', re.DOTALL);
  9. res = pattern.findall(source);
  10.  
  11. for item in res:
  12.     resp = urllib2.urlopen(item).read();
  13.     data = item.split('/');
  14.     f = open(data[len(data)-1], 'w');
  15.     f.write(resp);
  16.     f.close();
RAW Paste Data