issues
search
marchtea
/
scrapy_doc_chs
scrapy中文翻译文档
1.11k
stars
410
forks
source link
Update selectors.rst
#87
Open
toddlerya
opened
7 years ago
toddlerya
commented
7 years ago
fix error
response.xpath('//div/[id="not-exists"]/text()').extract_first() is None ==> response.xpath('//div[@id="not-exists"]/text()').extract_first() is None
sel.xpath('//div/[id="not-exists"]/text()').extract_first(default='not-found') ==> response.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found')
fix error