Peter Hansen <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list