scrapy的extract() 、extract_first()方法,get() 、getall() 方法

1.extract()方法: 結果如下: 結論:說明了extract()方法返回的是符合要求的所有的數據,存在一個列表裏。 2.extract_first()方法: def parse(self, response):     sel = Selector(response)     hrefs = sel.xpath(r'//*[@class="c1 ico2"]/li/a/@href')   
相關文章
相關標籤/搜索