how to scrape data from a html page saved locally

Solutions on MaxInterview for how to scrape data from a html page saved locally by the best coders in the world

showing results for - "how to scrape data from a html page saved locally"
Bautista
19 Nov 2018
1from bs4 import BeautifulSoup
2import html5lib
3myFile=open('C:/Users/CSE/AppData/Local/atom/app-1.42.0/practise.html','r')
4soup=BeautifulSoup(myFile,"html5lib")
5print(soup.prettify())
6