.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: < / P>

  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)); }  

Comments

Popular posts from this blog

php - mkdir() not creating folder on linux server -

configuration - Yaml merge in Python -

csv - folder and file access in go lang not working when using sub-directory -