如何在 C# 中从 HTML 文件中提取图像 url
任何人都可以帮助我解释如何在 C# 中从 HTML 文件中提取图像 url
Can anyone help me by explaining how to extract image urls from HTML File in C#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HTML Agility Pack 可以做到这一点 - 只需使用 //img 之类的查询并访问 src - 像这样:
The HTML Agility Pack can do this - just use a query like //img and access the src - like so:
您必须解析 HTML 并检查 img 标签,使用以下链接,它包含用于解析 HTML 标签的 C# 库,我遇到了您的问题 b4,我使用了这个库并与我合作良好 解析 HTML 标签
You have to parse the HTML and check the img tag use the following link it includes C# library for parsing HTML tags i faced your problem b4 and i used this library and working well with me Parsing HTML tags