获取BeautifulSoup并使用它。这很棒。
$> easy_install pip$> pip install BeautifulSoup$> python>>> from BeautifulSoup import BeautifulSoup as BS>>> import urllib2>>> html = urllib2.urlopen(your_site_here)>>> soup = BS(html)>>> elem = soup.findAll('a', {'title': 'title here'})>>> elem[0].text


