正在爬取第1页
Traceback (most recent call last):
File "D:\1111\爬虫\python_zeroing--master\dianping_comment\pachong.py", line 65, in
tree = etree.HTML(html)
AttributeError: 'function' object has no attribute 'HTML
导的包问题?试试
try:
from lxml import etree
except ImportError:
import xml.etree.cElementTree as etree