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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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