Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from bs4 import BeautifulSoup
import urllib.request as req
url = "http://www.shibuya24.info/"
res = req.urlopen(url)
soup = BeautifulSoup(res, "html.parser")
title = soup.html.title
print(title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment