I want to parse a table that appears after clicking the search button and then filter some of the data. How can I do this?
The site is ruspo.ru
My code is:
HttpWebRequest webRequest = WebRequest.Create("http://ruspo.ru/") as HttpWebRequest;
StreamReader responseReader = new StreamReader(webRequest.GetResponse().GetResponseStream());
string responseData = responseReader.ReadToEnd();
responseReader.Close();
webRequest.GetResponse().Close();
MatchCollection m1 = Regex.Matches(responseData, @"(?<=<table class=""ui-widget ui-widget-content""[^>]*>).*?(?=</div>)", RegexOptions.Singleline);
foreach (Match m in m1)
{
Response.Write(m.ToString());
//txtPrice.Text = m.ToString();
//ddlhotels.Text = m.ToString();
}