问题 I have this from urllib import request url = "http://www.bbc.co.uk/news/election-us-2016-35791008" html = request.urlopen(url).read().decode('utf8') html[:60] from bs4 import BeautifulSoup raw = BeautifulSoup(html, 'html.parser').get_text() raw.find_all('title', limit=1) print (raw.find_all("title")) '<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN' I want to extract the title of the page using BeautifulSoup but getting this error Traceback (most recent call last): File "C:\Users