using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using HtmlAgilityPack;
namespace sss
{
public class Downloader
{
WebClient client = new WebClient();
public HtmlDocument FindMovie(string Title)
{
//This will be implemented later on, it will search movie.
}
public HtmlDocument FindKnownMovie(string ID)
{
HtmlDocument Page = (HtmlDocument)client.DownloadString(String.Format("http://www.imdb.com/title/{0}/", ID));
}
}
}
How can I convert a downloaded string to a valid HtmlDocument so I can parse it using HTMLAgilityPack?