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')
本文标题:Scrapy选择器的或操作
本文链接:https://www.haomeiwen.com/subject/qlubsftx.html
网友评论