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

  1. response.xpath('//div/[id="not-exists"]/text()').extract_first() is None ==> response.xpath('//div[@id="not-exists"]/text()').extract_first() is None
  2. sel.xpath('//div/[id="not-exists"]/text()').extract_first(default='not-found') ==> response.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found')