C#下载html代码,商品的价格,销售量等数据丢失,该如何
我下载代码是这样写的,就是商品的价格,销售量等,数据没有下载到内存中,那位大哥能帮我看看!在此谢谢了
public static string GetPageHtml(string url)
{
WebClient webClient = new WebClient();
byte[] reqHTML;
reqHTML = webClient.DownloadData(url);
return System.Text.Encoding.Default.GetString(reqHTML);
}
是这个网址的:http://detail.tmall.com/item.htm?spm=a1z10.3.17-695579027.9.MjLaiV&id=8437928068&