SGMLlib module

John J. Lee jjl at pobox.com
Sun May 8 13:30:08 EDT 2005


Peter Hansen <peter at engcorp.com> writes:

> Harlin Seritt wrote:
> > I am trying to use SGMLlib module to extract all links from some data I
> > pulled from the web (via urllib). I have looked at the documentation
> > online and can not make sense of it. As a quick example, how would I
> > get the hyperlinks for an html file?
> 
> I know you're not someone to ignore Google, but this looked like a
> question that could pretty easily be answered using a quick search of
> the comp.lang.python archives via Google Groups -- and it appears I
> was right.
[...]

Also, htmllib extends sgmllib to make this trivial, IIRC, so you
(Harlin) could look at the htmllib source.


John



More information about the Python-list mailing list