我想解析一个点击搜索按钮后出现的表格,然后过滤一些数据。我怎样才能做到这一点?
该网站是ruspo.ru
我的代码是:
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();
}