只能输出一个链接,去掉try....except后显示如下,该怎么调试
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/baike_spider/baike_spider/spider_main.py", line 35, in <module>
obj_spider.craw(root_url)
File "C:/Users/Administrator/PycharmProjects/baike_spider/baike_spider/spider_main.py", line 20, in craw
new_urls,new_data=self.parser.parse(new_url,html_cont)
AttributeError: 'HtmlParser' object has no attribute 'parse'