记录一下今天学到的小知识还有小问题:
1.爬虫爬取到数据带有换行符和空格:
如果是xpath中可以使用normalize-space
将xpath作为把xpath表达式作为normalize-space()函数的参数
div.xpath('normalize-space(.//p/a/text())').get()
2.scrapy存在多个爬虫时:start.py: error: running 'scrapy crawl' with more than one spider is not supported
学习多开爬虫