老师请问在”def parse_list(url): ” 中执行
if tr.xpath("//td[3]/a[@class='forums_title ']/@href").extract():
topic_url = parse.urljoin(domain, tr.xpath("//td[3]/a[@class='forums_title ']/@href").extract()[0])
print(topic_url)
为什么会出现如下重复:
未结
400
https://bbs.csdn.net/topics/392700588
未结
400
https://bbs.csdn.net/topics/392700588
未结
400
https://bbs.csdn.net/topics/392700588