Skip to content

Instantly share code, notes, and snippets.

@JohnRuddy
Last active December 15, 2015 09:09
Show Gist options
  • Save JohnRuddy/5236682 to your computer and use it in GitHub Desktop.
Save JohnRuddy/5236682 to your computer and use it in GitHub Desktop.
HTMLAgilityPack - Retrieve image urls from image from some HTML.
var urls = document.DocumentNode.Descendants("img")
.Select(e => e.GetAttributeValue("src", null))
.Where(s => !String.IsNullOrEmpty(s));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment