Parsing html

C Gillespie csgcsg39 at hotmail.com
Thu Jul 8 12:04:24 EDT 2004


Dear All,

I have hopefully a very simple problem. I wish to parse an html page and
extract everything between the <body> tags.

E.g.
<head>
    <body>
        <b>afsdf</b>
    </body>
</head>

Would give
<body>
    <b>afsdf</b>
</body>

I've been playing about with htmllib with no successful. Any suggestions?

Thanks

Colin





More information about the Python-list mailing list