I am trying to get a web page using the following sample code:
from urllib import urlopen
print urlopen("http://www.php.net/manual/en/function.gettext.php").read()
Now I can get the whole web page in a variable. I wanna get a part of the page containing something like this
<div class="methodsynopsis dc-description">
<span class="type">string</span><span class="methodname"><b>gettext</b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$message</tt></span>
)</div>
So that i can generate a file to implement in another application. I wanna be able to extract the words "string", "gettext" and "$message".