So öffnen Sie die Datei in BeautifulSoup
from bs4 import BeautifulSoup
with open("index.html" , "r") as f:
doc = BeautifulSoup(f , 'html.parser')
print(doc.prettify())
# prettify fuction makes you code look prettier
Prashasti Gupta