先找到做法的链接在网页源代码的位置
<div class="listtyle1">
<a target="_blank" href="http://www.meishij.net/zuofa/ganbiansijidou_37.html" title="干煸四季豆" class="big">
xpath
,item['url_info']
for each in response.xpath("//div[@class='listtyle1']"):
url_info = each.xpath("a/@href").extract()[0]
item['url_info']= url_info
这边的xpath
最好直接就加上.extract()[0]
这样链接就不会被识别成list