Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import re;
- import urllib2;
- url = "http://afghanant.wordpress.com/2009/11/07/hiwainaru-fantasy-xiii-final-fantasy-xiii-lightning-hentai/";
- source = urllib2.urlopen(url).read();
- pattern = re.compile(r'(http://afghanant.files.wordpress.com/2009/10/[0-9]{2}\.jpg)', re.DOTALL);
- res = pattern.findall(source);
- for item in res:
- resp = urllib2.urlopen(item).read();
- data = item.split('/');
- f = open(data[len(data)-1], 'w');
- f.write(resp);
- f.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement