浏览器内使用xpath表达式可以提取出第一个的所有字符串,在scrapy里面什么也提取不出来
https://www.xiangha.com/xiangke/70
浏览器内使用xpath表达式可以提取出第一个的所有字符串,在scrapy里面什么也提取不出来
报错信息:

python代码:
def interaction_detail(self,response):
item = response.meta['item']
sk1=response.xpath("string(//div[@class='ing_tips tab_con']/table/tbody/tr/td)")
print(item['food_name'])
print("sk1:",sk1)
return item浏览器里面的结果

想要的是;
排骨+海带:可治皮肤瘙痒