zhihu-python icon indicating copy to clipboard operation
zhihu-python copied to clipboard

Answer.get_question()失败

Open TPeterW opened this issue 8 years ago • 1 comments

错误报告如下,应该是知乎换了格式了 Traceback (most recent call last): File "./crawl.py", line 19, in print "\nQuestion " + ": " + answer.get_question().get_title() + "\n" File "filepath/zhihu.py", line 1070, in get_question question_link = soup.find("h2", class_="zm-item-title zm-editable-content").a AttributeError: 'NoneType' object has no attribute 'a'

TPeterW avatar Jun 26 '16 19:06 TPeterW

修改一下class属性值就行。 class_="zm-item-title"

yangjiwen avatar Jul 21 '16 08:07 yangjiwen