回帖:a/@href
contains(str1, str2) # str1中有str2,则返回true,例如以下表达式输出链接文字中包含image的链接:
hxs.select('//a/@href').extract()
下一楼›:Scrapy使用XPath的表达式的机制来获得html或xml中的内容。这里只记录下html的使用。
你可以 ..
(北斗星)
‹上一楼:# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# Se ..
(北斗星)