这里以http://bj.maitian.cn/esfall/PG1为例子,然后获取标题。
scrapy shell "http://bj.maitian.cn/esfall/PG1" title =response.xpath('//div[@class="list_title"]/h1/a/text()').extract() title