tag lxml

標籤
貢獻1
53
11:10 PM · Nov 05 ,2025

@lxml / 博客 RSS 訂閱

瑞0908 - xpath匹配一個標籤下所有內容

from lxml import etree import requests url = 'http://www.shihuo.cn/youhui/474770.html#qk=youhui_list' response = requests.get(url) text = etree.HTML(response.text) tt = text.xpath("//div[@class='art

xpath , lxml , requirejs , Python

收藏 評論