In [2]:
!pip3 install bs4
In [3]:
from bs4 import BeautifulSoup
In [4]:
from urllib.request import urlopen
html_str = urlopen("http://static.decontextualize.com/widgets2016.html").read()
document = BeautifulSoup(html_str, "html.parser")
In [ ]: