获取p的段落文字出问题了
当输入print '获取p段落文字'
p_node = soup.find('p',class_="title")
print p_node.name, p_node.get_text()
出现raceback (most recent call last):
File "E:/py/BeautifulSouptest.py", line 31, in <module>
print p_node.name, p_node.get_text()
AttributeError: 'NoneType' object has no attribute 'name'