.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

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -