📅  最后修改于: 2022-03-11 14:46:09.638000             🧑  作者: Mango
# 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)