Parse HTML
Library¶
In [12]:
from bs4 import BeautifulSoup
import requests
Simple HTML from string¶
In [24]:
html_simple = '<h1>This is Title<h1>'
html_simple
Out[24]:
In [25]:
soup = BeautifulSoup(html_simple)
In [26]:
soup.text
Out[26]: