extracting specific content from html page
Question: Suppose I have an html page source like:

    
    
    <p><font face="Arial" color="#400040"><small><strong>
    
    <a href="some_link">description</a>: </strong>some text.</small></font></p>
    

I want to just extract the "description part? How do I do this. I think there
is a very pythonic way to do this. Thanks


Answer: Get [BeautifulSoup](http://www.crummy.com/software/BeautifulSoup/). Then:

    
    
    from BeautifulSoup import BeautifulSoup
    soup = BeautifulSoup(your_text)
    description = soup.find('a').string
    

You may need to modify the last line to uniquely identify your a tag.

