
scrapy
mldxs
android
足球
java
篮球
魔兽
展开
-
scrapy 安装 ImportError: No module named w3lib.html
这个错误是因为没有安装w3lib导致的easy_install w3lib原创 2012-11-29 10:48:48 · 4272 阅读 · 0 评论 -
scrapy 使用代理
# Importing base64 library because we'll need it ONLY#in case if the proxy we are going to use requires authenticationimport base64# Start your middleware classclass ProxyMiddleware(object): #原创 2013-03-21 15:08:57 · 3455 阅读 · 0 评论 -
scrapy 监控spider启动和关闭
from scrapy.xlib.pydispatch import dispatcherfrom scrapy import signalsfrom scrapy.exceptions import DropItemclass DuplicatesPipeline(object):def __init__(self): self.duplicates = {} dispa原创 2013-03-20 16:21:42 · 14573 阅读 · 3 评论