小编Rak*_*rma的帖子

如何使用BeautifulSoup逐行读取数据?

我有以下代码,它为我提供了 Example.html 文件中的数据。但我必须逐行读取数据

html_doc = open("Example.html","r")
soup = BeautifulSoup(html_doc, 'html.parser')
print(soup.get_text())
Run Code Online (Sandbox Code Playgroud)

python beautifulsoup

-1
推荐指数
1
解决办法
2747
查看次数

标签 统计

beautifulsoup ×1

python ×1