标签:xpath shell span list extract item view ext pat
------------------------------------------------------------------------------------------------------------------------------
scrapy shell http://bj.ganji.com/fang1/chaoyang/
In [1]: response
Out[1]: <200 http://bj.ganji.com/fang1/chaoyang/>
In [2]: view(response)
Out[2]: True
In [26]: response.xpath(‘‘‘//*[@class="f-list-item "]/dl/dd[5]/div[1]/span[1]/text()‘‘‘).extract()
------------------------------------------------------------------------------------------------------------------------------
标签:xpath shell span list extract item view ext pat
原文地址:http://www.cnblogs.com/missmissmiss/p/7158482.html