摘要:
在“Scrapy入门教程”中,在创建的“dmoz_spider.py”文件中是通过import scrapyclass DmozSpider(scrapy.Spider):的方式导入。但是用这种方法会出现错误: class DmozSpider(scrapy.Spider):AttributeErr... 阅读全文
摘要:
准备做一个爬虫,看了一下Python比较合适,花了一天时间学了一下语法,又找了一下有专门的爬虫框架Scrapy。以下是学习过程。1. 安装Scrapy 中文说明:http://scrapy-chs.readthedocs.org/zh_CN/latest/intro/install.html Re... 阅读全文