Searching in an html file

Moshe Zadka moshez at math.huji.ac.il
Fri Jul 28 07:59:55 EDT 2000


On Fri, 28 Jul 2000 pauljolly at my-deja.com wrote:

> Dear all,
> 
> I have managed to write the code to retrieve an html file from a given
> address, and transfer this to a variable. I am now trying to search for
> a ° within the file, using the re module. I cannot however get it
> to work.

Thank your luck. Instead, try using htmllib, which knows more about
HTML then you'd ever want to.
Just overide handle_entityref to look for "deg" and be done with it.

--
Moshe Zadka <moshez at math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez





More information about the Python-list mailing list