Selecting specific text from a webpage using Python
<p>Although I love the program, I've gotten extremely tired of Calibre's weekly updating habit.  To counteract that problem I'm trying to work with a python script that will automate the process.</p>

<p>I have successfully opened the document, but I have trouble figuring out how to capture a specific piece of it for a string.  Since Calibre's download link depends on the version number that needs to be retrieved.  Currently line 218 contains the following:</p>

<blockquote>
<pre><code>       &lt;a href="/projects/calibre/files/latest/download?source=files" title="/0.8.34/calibre-portable-0.8.34.zip:  released on 2012-01-06 07:22:08 UTC"&gt;
</code></pre>
</blockquote>

<p>I need to retrieve "calibre-ebook.0.8.34" from the line.  Any suggestions on how to make that work?</p>

<pre><code>import urllib2
print("Calibre is Updating")
url = urllib2.urlopen ( "http://sourceforge.net/projects/calibre/files" ).read()
print(url)
</code></pre>
