Grabbing title tag from web page

At least a couple of options, the first using BeautifulSoup: import urllib import BeautifulSoup soup = BeautifulSoup.BeautifulSoup(urllib.urlopen("https://www.google.com")) print soup.title.string And the second one using lxml: import lxml.ht

Comments (0)

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     Connect     twitter

About

Genius. Incredible. Remarkable. Awesome. Cool. On top of that, I am extremely humble too.