Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: None  |  size: 1.09 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. private ArrayList getSynopsis()
  2.         {
  3.             for (int i = 0; i < animeURLList.Count; i++)
  4.             {
  5.                
  6.                     var mainURL = "http://www.animenewsnetwork.com";
  7.                     var theHTML = wc.DownloadString(mainURL + (string) animeURLList[i]);
  8.                     MessageBox.Show(theHTML);
  9.                     //inner html for the span info
  10.                     HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
  11.                     doc.LoadHtml(theHTML);
  12.                     //var array = doc.DocumentNode.SelectNodes("//div[@id='infotype-12'][@class='encyc-info-type br']");
  13.                     //MessageBox.Show("got here" + array.ToString());
  14.                     ArrayList synopList = new ArrayList();;
  15.  
  16.                     foreach (HtmlNode node doc.DocumentNode.SelectNodes("//div[@id='infotype-12'][@class='encyc-info-type br']"))
  17.                     {
  18.                             synopList.Add(node.GetAttributeValue("span", "null"));
  19.                     }
  20.                
  21.             }
  22.             return null;
  23.         }