In [2]:
!pip3 install bs4


Collecting bs4
Collecting beautifulsoup4 (from bs4)
  Using cached beautifulsoup4-4.4.1-py3-none-any.whl
Installing collected packages: beautifulsoup4, bs4
Successfully installed beautifulsoup4-4.4.1 bs4-0.0.1

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 [ ]: