Python: Parsing HTML with BeautifulSoup -
<a href="/watch?gl=us&client=mv-google&hl=en&v=0c_yxohjxwg">miss black ocu 2011</a>
my program reads html file, , above chunk of file. want grab miss black ocu 2011
using beautifulsoup in python. suggestions?
i suggest looking @ attributes of tag , navigablestring class
text = """<a href="/watch?gl=us&client=mv-google&hl=en&v=0c_yxohjxwg">miss black ocu 2011</a>""" soup = beautifulsoup(text) print soup.find('a').text
Comments
Post a Comment