soup.find()
from bs4 import BeautifulSoup
import re
print u'获取Lacie的链接'
link_node = soup.find('a', herf = 'http://example.com/lacie')
print link_node.name,link_node['href'],link_node.get_text()
报错:
Traceback (most recent call last): File "libar.py", line 28, in
print link_node.name,link_node['href'],link_node.get_text() AttributeError: 'NoneType' object has no attribute 'name'
求助各位大神