In [2]:
from bs4 import BeautifulSoup as soup  # HTML data structure
import urllib.request, urllib.parse, urllib.error

# connection to a page with information
URL = 'https://secure.msse.se/shb/sv/funds/returns?hw=true&hb=true&hc=true'

# open up the connection
uClient = urllib.request.urlopen(URL)

# parses html into a soup data structure to traverse html
# as if it were a json data type.
page_soup = soup(uClient.read(), "html.parser")
uClient.close()

In [ ]: