我有以下代码,它为我提供了 Example.html 文件中的数据。但我必须逐行读取数据
html_doc = open("Example.html","r") soup = BeautifulSoup(html_doc, 'html.parser') print(soup.get_text())
python beautifulsoup
beautifulsoup ×1
python ×1