Check out example codes for "python get html info". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com