How can I get the line of the text where an xml tag is found in Python using bs4 or lxml?

前端 未结 0 887
野趣味
野趣味 2020-12-30 01:47

I have an xml document and I want to get the line at which the tag extracted by BeautifulSoup or lxml is found. Is there a way to do that?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题