Posts

.net - How to extract image urls from HTML File in C# -

Anyone can help me, by explaining how to remove image url from HTML file in C # You can do this - just use an imag query like // and use src - such as: string html; (Web client client = new webclient ()) {html = client.DownloadString ("http://www.google.com"); } HtmlDocument Doc = New HtmlDocument (); Doc.LoadHtml (HTML); Foreach (HtmlNode img in doc.DocumentNode.SelectNodes ("// img")) {Console.WriteLine (img.GetAttributeValue ("src", tap)); }