立即学习:https://edu.csdn.net/course/play/24797/282222?utm_source=blogtoedu
scrapy shell -s USER_AGENT="Mozilla/5.0" http://网址
xpath取值:
response.xpath(''div[@class='css']").extract()
css取值:
response.css('div.cssname>spab.cssname')
立即学习:https://edu.csdn.net/course/play/24797/282222?utm_source=blogtoedu
scrapy shell -s USER_AGENT="Mozilla/5.0" http://网址
xpath取值:
response.xpath(''div[@class='css']").extract()
css取值:
response.css('div.cssname>spab.cssname')