Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answer.get_question()失败 #74

Open
TPeterW opened this issue Jun 26, 2016 · 1 comment
Open

Answer.get_question()失败 #74

TPeterW opened this issue Jun 26, 2016 · 1 comment

Comments

@TPeterW
Copy link

TPeterW commented Jun 26, 2016

错误报告如下,应该是知乎换了格式了
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'

@yangjiwen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants