I am using scrapy 1.4,the version of twisted is 17.5.0,python is 3.6.3.
html is like this:
<span class="number"> 20</span> when I run the spider,there is an error:
item['number'] = response.xpath('//span[@class="number"]/text()').extract_first().strip() AttributeError: 'NoneType' object has no attribute 'strip' what should I do?