python get html info

Solutions on MaxInterview for python get html info 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 - "python get html info"
Louis
05 Jan 2018
1from bs4 import BeautifulSoup
2
3my_HTML = #Some HTML file (could be a website, you can use urllib for that)
4
5soup = BeautifulSoup(my_HTML, 'html.parser')
6
7print(soup.prettify())