Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@baobao
Created November 4, 2017 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/77b0595d13c99b70c18fef74990e0bb8 to your computer and use it in GitHub Desktop.
Save baobao/77b0595d13c99b70c18fef74990e0bb8 to your computer and use it in GitHub Desktop.
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