Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Extract all links? #9

Open
barvinog opened this issue Aug 10, 2020 · 0 comments
Open

Extract all links? #9

barvinog opened this issue Aug 10, 2020 · 0 comments

Comments

@barvinog
Copy link

Sorry, this code doesn't extract all links from html source:

procedure Test(html);
var
LHtml: IHtmlElement;
LList: IHtmlElementList;
begin
LHtml := ParserHTML(html);
if LHtml <> nil then
begin
LList := LHtml.SimpleCSSSelector('a');
for LHtml in LList do
Memo1.Lines.Add('url:' + LHtml.Attributes['href']);
end;
end;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant