不同于我们普通爬虫获取xpath,scrapy获得xpath对象获取他的值语法
xpath对象..extract()
response.xpath('//a[re:test(@href,"^\/index\.php\?m=News&a=details&id=1&NewsId=\d{1,4}")]')
a=response.xpath('//a[re:test(text(),"\w{4}")]')
a=response.xpath('//a[starts-with(@title,"注册时间")]') #以什么开头
a=response.xpath('//a[contains(text(),"闻")]') #包含