private List<Cast> GetCast(string html)
{
ImdbCrawler imdb = new ImdbCrawler();
HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
htmlDoc.OptionFixNestedTags = true;
htmlDoc.LoadHtml(html);
if (htmlDoc.DocumentNode != null)
{
HtmlAgilityPack.HtmlNode bodyNode = htmlDoc.DocumentNode.SelectSingleNode("//body");
if (bodyNode == null)
{
Console.WriteLine("body node is null");
}
else
{
return imdb.GetMovieCastDetails(bodyNode);
//return imdb.GetMovieDetails(bodyNode);
}
}
return null;
}