开发者

Parsing HTML in Delphi to find the addresses of all images

How can I extract the addresses of all image开发者_StackOverflow社区s in an HTML file using Delphi, for example by using an HTML parser?


You can use the IHTMLDocument2 interface to parse the HTML, check this sample Retrieving all image links from an HTML document


The JVCL has a component, JvHtmlParser, that might work for you.

I have successfully used it to extract data from tables in HTML files.

The TIpHtml class in the old TurboPower Internet Professional VCL component library that "implements parsing and rendering of HTML documents". It is old, does not appear to have been updated since 2003.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜