如何使用python从html格式的表中获取数据?
我对Html一无所知,最近我发现如何使用python模块中的请求和lxml.hmtl从Html中的特定类获取数据。问题是我现在面临这个问题如何使用python从html格式的表中获取数据?,html,python-3.x,Html,Python 3.x,我对Html一无所知,最近我发现如何使用python模块中的请求和lxml.hmtl从Html中的特定类获取数据。问题是我现在面临这个问题 html = requests.get('html') doc = lxml.html.fromstring(html.content) scope = doc.xpath('//p/text()')
html = requests.get('html')
doc = lxml.html.fromstring(html.content)
scope = doc.xpath('//p/text()')