赞
踩
scrapy中文文档:https://scrapy-chs.readthedocs.io/zh_CN/0.24/topics/commands.html
1,创建爬虫注意事项
2.没有cd到项目根目录,因为crawl会去搜搜cmd目录下的scrapy.cfg
运行报错:Unhandled error in Deferred:
UnicodeEncodeError: ‘gbk’ codec can’t encode character u’\xa0’ in position 148:
response.text.replace(u'\xa0',u' ')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。