Extracing song length and size from HTML using Python
Question: I am making a simple mp3 down-loader from a Website. In doing so I stuck while
parsing time and size of audio:

    
    
    <div class="mp3-info">
        1.69 mins
    <br/>
        2.33 mb
    </div>
    

Now I need to parse `1.69 mins` and `2.33 mb` from above HTML. I am using
python 3.4


Answer: I would use [BeautifulSoup4](http://www.crummy.com/software/BeautifulSoup/) to
parse your HTML. See docs
[here](http://www.crummy.com/software/BeautifulSoup/bs4/doc/).

    
    
    import BeautifulSoup
    soup = BeautifulSoup.BeautifulSoup(your_html_string)
    soup.findAll("div", {"class": "mp3-info"})
    # Now extract the text
    

Also because it's a class, it could be that there are multiple ones on the
page...

