zhihu-python
zhihu-python copied to clipboard
是知乎的网页结构换了吗?出现大量的NONETYPE错误
title = soup.find("h2", class_="zm-item-title").string.encode("utf-8").replace("\n", "") AttributeError: 'NoneType' object has no attribute 'string'
同问= =
python2 test.py
Traceback (most recent call last):
File "test.py", line 304, in