python get html info

Solutions on MaxInterview for python get html info by the best coders in the world

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())