62,267
社区成员
发帖
与我相关
我的任务
分享try
{
string now = DateTime.Now.ToString("yyyy-MM-dd");
url = string.Format("{0}_{1}_{1}_1.htm", url, now);
string form = Http.GetHtml(url, ref cookie);
form = Other.GetRegValue("<tr><td((?!</tr>).)+", form);
MatchCollection matches = Other.GetRegValues("<td((?!</td>).)+", form);
int a = int.Parse(Other.GetRegValue(@"\d+", matches[3].Value));
int b = int.Parse(Other.GetRegValue(@"\d+", matches[4].Value));
return new ShiHuaPrice(a, b, now);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return null;
}