Python lxml: remove empty html tags. Just repeat this for every tag you want to remove. import lxml.html root lxml.html.fromstring(html) for p in root.xpath ...
確定! 回上一頁