🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #138

Getting Links from a HTML document?

#138
From: Thomas Fuchs
Date: Sun, 22 Feb 2004 11:54
10 lines
1455 bytes
Hi,

I want to extract all links from an HTML document and feed them into a text
file, stringlist or whatever.
The HTMLViewer component from http://www.pbear.com has a property "LinkList"
which contains all links of the page in a TList. How can I access them?
I know I can search the page for ahref= and do it myself but it would be
more comfortable to have the HTMLViewer do it.

Thanks
Technical Details
Message-ID: <c1a5a4$cpt$00$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,ff990454113af017,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-02-22 03:55:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Thomas Fuchs" <tommifuchs@gmx.de>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Getting Links from a HTML document?
Date: Sun, 22 Feb 2004 12:54:33 +0100
Organization: T-Online
Lines: 13
Message-ID: <c1a5a4$cpt$00$1@news.t-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1077450887 00 13117 000aG3x1HSSvSciR 040222 11:54:47
X-Complaints-To: usenet-abuse@t-online.de
X-ID: TDvToMZBgehUd-bB827Jf3VdILtodNSY7CFziJ9V5wyBlgNgGw-0o6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106