Re: Extrating Link text ...

At 09.05.2001 22:54 -0700, John Kieti wrote:

Am trying to use libwww to extract link text from
HTML. Am able to extract the links (HREFs) but not the
corresponding link text (I know it can be a image).

Might anybody give me an idea or point me to some code
with this?

Hi John,

I using "HText_registerTextCallback(*)" in my main-function.
This gives the text between two tags to the function *.
I set a global variable for the open-A-tag and reset it
when the close-A-tag is found. So I get only the text for the links.
For the syntax of the function-* look in the libwww-src.

Hope this helps,
Sven Laaks

Received on Thursday, 10 May 2001 08:15:11 UTC