You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
同问= =
python2 test.py
Traceback (most recent call last):
File "test.py", line 304, in
main()
File "test.py", line 288, in main
question_test(url)
File "test.py", line 35, in question_test
title = question.get_title()
File "C:\Users\swanxie\Desktop\zhihu-python-master\zhihu.py", line 291, in get_title
title = soup.find("h2", class_="zm-item-title").string.encode("utf-8").replace("\n", "")
AttributeError: 'NoneType' object has no attribute 'string
title = soup.find("h2", class_="zm-item-title").string.encode("utf-8").replace("\n", "")
AttributeError: 'NoneType' object has no attribute 'string'
The text was updated successfully, but these errors were encountered: