Extract Links From an HTML Page Using DelphiGet Href Attribute From The A Tag From an HTML DocumentBy Zarko Gajic AdsAbakus VCLwww.abaecker.bizDelphi und C++Builder Components for virtual instrumentation Delphi Globalization Toolwww.tsilang.comGlobalize your Delphi applications easy, professionally and fast! Delphi FireMonkey Controlswww.woll2woll.comProfessional FireMonkey Components Grids, Editors, Searching, Validation AdsWholesale Herbal Extractswww.blueskybotanics.comFair trade botanicals, teas, fruits Organic products. UK manufacturer. HTML UI Engineawesomium.comWindowless WebKit Renderer. Use HTML UI in your C++ or .NET app.
In most situations you use the TWebBrowser to display HTML documents to the user - thus creating your own version of the (Internet Explorer) Web browser.
A very nice feature of a Browser is to display link information, for example, in the status bar, when the mouse hovers over a link in a document. This can also be done in Delphi: Get the Url of a Hyperlink when the Mouse moves Over a TWebBrowser Document. Sometimes, you "only" want to extract all the links from a HTML document / URL. You want to get the HREF attribute of all A tags. Here's how to extract all hyperlinks from an HTML document. The ExtractLinks procedure fills a TStrings object with the value of the HREF attribute of the A HTML element. Extract HyperLinksuses mshtml, ActiveX, COMObj, IdHTTP, idURI; Suggested ReadingNew posts to the Delphi Programming forums: |
|