pull data from a web page as text

Aahz Maruch aahz at netcom.com
Wed Dec 29 21:23:55 EST 1999


In article <84ecvh$mh2$1 at nnrp1.deja.com>,  <cornelhughes at netscape.net> wrote:
>
>Is there a way in python to pull data from a web page as text. A method
>that would exclude html code and bring back text?

Use urllib and htmllib.  You'll probably have to subclass HTMLParser()
to completely get rid of tags.
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Eighth Virtual Anniversary -- 2 days and counting!



More information about the Python-list mailing list