cara membuka file di 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