This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| import urllib2 | |
| import urllib | |
| import re | |
| pat = re.compile(r'<div.*?class="content".*?ti.*?>(.*?)</div>', re.S)#有问题 | |
| nexturl1 = "http://www.qiushibaike.com/month/page/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urllib2 import urlopen, URLError | |
| from urllib import urlretrieve | |
| import threading | |
| import re | |
| import os | |
| downroot = r'D:\luguan' | |
| p1 = re.compile(r'src="img.+jpg') | |
| p2 = re.compile(r'\d{1,}\.jpg') | |
| prefix = 'http://www.lu-guan.com/xxoo/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| #--------------------------------------- | |
| # 程序:点点美女图片爬虫 | |
| # 版本:0.2 | |
| # 作者:zippera | |
| # 日期:2013-07-26 | |
| # 语言:Python 2.7 | |
| # 说明:能设置下载的页数 |
NewerOlder