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.
精彩评论