<title> タグを取得
# -*- coding:utf-8 -*- import urllib2 from bs4 import BeautifulSoup html = urllib2.urlopen("http://kazuyan.hatenablog.com/entry/building-a-large-scale-design-system") soup = BeautifulSoup(html) print soup.title.string
実行結果
大規模デザインシステムを作る:いかにしてアメリカ連邦政府のデザインシステムを作り上げたか - カタパルト式!スープレックス!!
参考