XPath from lxml import etreetext = '''<!doctype html><html lang="zh" data-hairline="true" data-theme="light"><head> <meta charSet="utf-8" /> <title json 2024-09-09 271 点赞 4 评论 410 浏览