立即学习:https://edu.csdn.net/course/play/9882/209890?utm_source=blogtoedu
dllist = response.selector.xpath("//dl")
for dd in dllist:
print(dd.css("p.fl a::attr('title')").extract_frist())#a::attr a标签title属性 ::text()是取文本内容
回调函数给parse方法:
next_url = "xxx"
url = response.urljoin(nxt_url)#构建绝对url地址(可省略)
yield scrapy.Request(url=url,callback=self.parse)