python get html info
from bs4 import BeautifulSoup
my_HTML = #Some HTML file (could be a website, you can use urllib for that)
soup = BeautifulSoup(my_HTML, 'html.parser')
print(soup.prettify())
python get html info
from bs4 import BeautifulSoup
my_HTML = #Some HTML file (could be a website, you can use urllib for that)
soup = BeautifulSoup(my_HTML, 'html.parser')
print(soup.prettify())
how to scrape data from a html page saved locally
from bs4 import BeautifulSoup
import html5lib
myFile=open('C:/Users/CSE/AppData/Local/atom/app-1.42.0/practise.html','r')
soup=BeautifulSoup(myFile,"html5lib")
print(soup.prettify())
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us