- 博客(4)
- 收藏
- 关注
原创 spider 4.0,
# 'encoding: UTF-8' __author__ = 'apple' import re import urllib2 import threading from threading import Thread from Queue import Queue import time from time import sleep, ctime q = Queue()
2015-03-14 20:58:27
299
原创 python3.0 图片爬虫(增加多线程)
import re import urllib2 import threading from time import ctime,sleep class 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
469
原创 spider 2.0
import re import urllib2 import urllib def 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
353
原创 一个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
472
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅