我下载代码是这样写的,就是商品的价格,销售量等,数据没有下载到内存中,那位大哥能帮我看看!在此谢谢了
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&c#string

解决方案 »

  1.   

    人家是用ajax技术动态加载的。
      

  2.   

    试过了,得到了那个商品页的html了,没问题啊。接下来就是要把相应信息“抠”出来,可以用htmlagilitypack,搜索一下用法。
      

  3.   

    看过了,价格库存这些信息不是ajax动态加载的,这个页面的html里就有。用2#的提示去做吧。
      

  4.   

    http://zhoufoxcn.blog.51cto.com/792419/595344http://blog.csdn.net/dalmeeme/article/details/7191793
      

  5.   

    开始字符串:'defaultItemPrice':'
    结束字符串:',
    得到价格:99.00