from lxml import etree #引入包
selector = etree.HTML(response.text) #格式化
val = selector.xpath('//a[@name="OLE_LINK109"]/following-sibling::*[1]/span/text()')
python使用xpath
最新推荐文章于 2023-04-12 17:40:44 发布
from lxml import etree #引入包
selector = etree.HTML(response.text) #格式化
val = selector.xpath('//a[@name="OLE_LINK109"]/following-sibling::*[1]/span/text()')