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

Extract all links? #9

@barvinog

Description

@barvinog

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions