HTML parsing examples

Voitenko, Denis dvoitenko at qode.com
Tue Jan 2 11:34:31 EST 2001


One thing I noticed with the Python manual is that it does not have any
examples. I wish it was structured like PHP online manulal
(http://www.php.net/manual/) where people can add comments, etc.

Anyways, I am trying to figure out how to parse HTML with htmlllib and I am
completely lost. Can somone give examples?
Say, I have a file like this

<html>
<body>
<p>Hello, World!
</body>
</html>

I would like to find methods and contents of <body> and contents of <p>. How
would I do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010102/49c42045/attachment.html>


More information about the Python-list mailing list