Scrapy选择器的或操作
2018-06-06 本文已影响11人
tenlee
CSS选择器或操作
ps = response.css('#article p:not(.show_author)::text,'
'#artibody p:not(.article-editor)::text').extract()
XPATH选择器或操作
response.xpath('/html | /html')
ps = response.css('#article p:not(.show_author)::text,'
'#artibody p:not(.article-editor)::text').extract()
response.xpath('/html | /html')