I am trying to read in the current day's dilbert image. I am able to get the full text of the page by doing this:
var todayDate = DateTime.Now.ToString("yyyy-MM-dd");
var web = new HtmlWeb();
web.UseCookies = true;
var wp = new WebProxy("http://myproxy:8080");
wp.UseDefaultCredentials = true;
NetworkCredential nc = (NetworkCredential)CredentialCache.DefaultCredentials;
HtmlDocument document = web.Load("http://www.dilbert.com/strips/comic/" + todayDate, "GET", wp, nc);
if I look at the full html of the document I see the image listed multiple times on the page such as:
<meta property="og:image" content="http://assets.amuniversal.com/c2168fa0c45a0132d8f0005056a9545d"/>
or:
<meta name="twitter:image" content="http://assets.amuniversal.com/c2168fa0c45a0132d8f0005056a9545d">
or
<img alt="Squirrel In The Large Hadron Collider - Dilbert by Scott Adams" class="img-responsive img-comic" height="280" src="http://assets.amuniversal.com/c2168fa0c45a0132d8f0005056a9545d" width="900" />
what is the best way to parse out the URl from this picture?