0
Guys I researched a lot and could not solve this problem. Here’s the thing, I can extract the text information, for example:
<span class="style13">texto para extrair</span>
But what you want is to extract the link from A HREF, example:
<a href="extrair o link" target="_blank">texto</a>
With this code I get a lot of information:
procedure TForm1.Button1Click(Sender: TObject);
var
doc : IHTMLDocument3;
elements : IHTMLElementCollection;
element : IHTMLElement;
i : integer;
begin
doc := WebBrowser1.Document as IHTMLDocument3;
elements := doc.getElementsByTagName('a');
for i := 0 to elements.length - 1 do begin
element := elements.item(i, 0) as IHTMLElement;
Memo1.Lines.Add(element.innerHTML);
end;
end;
I would like a more specific answer, if possible just extract the same link.
Thanks in advance.
It’s had no way to extract, if it exists as I do not know how to do haha Thanks for the help, I got to where I wanted using your idea, look down as I did.
– willianvor
OK ;) If you’ve solved it’s fine
– Tiago Rodrigues