用Python爬虫出现了题目所述的问题,求大神解答以下,救救小白吧,哭了
代码如下:
Result=Soup.find('div',class_='tip-text ugc-ellipsis fade-text').text.strip()
错误提示:
AttributeError Traceback (most recent call last)
in
----> 1 Result=Soup.find('div',class_='tip-text ugc-ellipsis fade-text').text.strip()
AttributeError: 'NoneType' object has no attribute 'text'