📜  BeautifulSoup(raw_html - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:09.638000             🧑  作者: Mango

代码示例1
# Extracting raw html from locally saved html file using BeautifulSoup

from bs4 import BeautifulSoup
url = r"C:\example.html"
soup = BeautifulSoup(url, "html.parser")
text = soup.get_text()
print (text)