- 博客(4)
- 收藏
- 关注
原创 spider 4.0,
# 'encoding: UTF-8'__author__ = 'apple'import reimport urllib2import threadingfrom threading import Threadfrom Queue import Queueimport timefrom time import sleep, ctimeq = Queue()
2015-03-14 20:58:27 274
原创 python3.0 图片爬虫(增加多线程)
import reimport urllib2import threadingfrom time import ctime,sleepclass web_info: def __init__(self): self.user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' self.h
2015-03-12 00:46:29 446
原创 spider 2.0
import reimport urllib2import urllibdef get_herf(): address = [] for page in xrange(1,200): try: url = "http://www.meizitu.com/a/list_1_%d.html" %page re
2015-03-09 23:09:34 280
原创 一个python爬图片的小爬虫
import reimport urllib2import urllibdef get_herf(): for i in xrange(1,2): url = "http://www.meizitu.com/a/list_1_%d.html" %i request = urllib2.Request(url) respond = urllib2.urlopen(request) content =
2015-03-09 00:16:57 440
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人