You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.3 KiB

Beautifulsoup

In [ ]:
import urllib
from bs4 import BeautifulSoup
In [ ]:
url = 'https://go-dh.github.io/mincomp/thoughts/2016/10/02/minimal-definitions/'
response = urllib.request.urlopen(url)
html = response.read()
soup = BeautifulSoup(html, 'html.parser')
In [ ]:
print(soup.prettify())
In [ ]: