Installed skip this step
pip install lxml
from lxml import etree
obj = etree.HTML(网页代码)
res = obj.xpath(表达式)
Note: If the expression is to get a label object so that the object can continue to use xpath method