GitHub代码练习地址:用lxml解析HTML,文件读取,etree和XPath的配合使用:https://github.com/Neo-ML/PythonPractice/blob/master/SpiderPrac17_xpath%26lxml.py XML- XML(EXtensibleMarkupLanguage) - 官方文档http://www.w3school.com.cn/xml/index.asp- 概念:父节点,子节点,先辈节点,兄弟节点,后代节点 XPath- XPath…