
Untitled
By: a guest on
Aug 19th, 2012 | syntax:
None | size: 1.09 KB | hits: 16 | expires: Never
private ArrayList getSynopsis()
{
for (int i = 0; i < animeURLList.Count; i++)
{
var mainURL = "http://www.animenewsnetwork.com";
var theHTML = wc.DownloadString(mainURL + (string) animeURLList[i]);
MessageBox.Show(theHTML);
//inner html for the span info
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(theHTML);
//var array = doc.DocumentNode.SelectNodes("//div[@id='infotype-12'][@class='encyc-info-type br']");
//MessageBox.Show("got here" + array.ToString());
ArrayList synopList = new ArrayList();;
foreach (HtmlNode node doc.DocumentNode.SelectNodes("//div[@id='infotype-12'][@class='encyc-info-type br']"))
{
synopList.Add(node.GetAttributeValue("span", "null"));
}
}
return null;
}