What would be the simplest way to get the title of a page in Requests?
r = requests.get(\'http://www.imdb.com/title/tt0108778/\')
# ? r.title
Friends (TV Ser
You could use beautifulsoup to parse the HTML.
Install it using pip install beautifulsoup4
>>> import requests
>>> r = requests.get('http://www.imdb.com/title/tt0108778/')
>>> import bs4
>>> html = bs4.BeautifulSoup(r.text)
>>> html.title
Friends (TV Series 1994–2004) - IMDb
>>> html.title.text
u'Friends (TV Series 1994\u20132004) - IMDb'