如题
最近 公司要看下 一些商品在京东的价格谁知道  京东的价格是个SPAN 貌似 是js 赋值的  
很纠结 !  我是在源文件里截取的  所以就找不到  价格了…………大神们 有什么好办法! 谢谢了   急急

解决方案 »

  1.   

    其实可以截取的,不过得到的是图片,要对图片做分析,最终得到具体价格你可以看看google上的比价功能,可以显示京东等网站的价格。
      

  2.   

    谢谢各位大侠了   问题解决了  绑定到webBrowser   上   因为是winfrom   这样了还可以! 要是Bs  上面  抓价格  就悲剧了
    public void GetPmsg()
            {
                if (webBrowser1.Document != null && webBrowser1.Document.Body != null)
                {
                    returnmoney = new getContent().PriceGetContentField(ProductUrl, WebSiteID, webBrowser1.Document.Body.InnerHtml);
                }
            //    return returnmoney;
            }        private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
            {
                ((WebBrowser)sender).Document.Window.Error += new HtmlElementErrorEventHandler(Window_Error);
                timer1.Enabled = false;
                GetPmsg();
                UpdateSellMoney();
                timerWebSite.Enabled = true;
                return;
                //timermoni.Enabled = true;
                //  绑定成功不执行 timer2事件
            }
    绑定后   在这( webBrowser1.Document.Body.InnerHtml)上面获取  HTML  
    不过会很慢的……
    各位大侠    还有什么好办法 
      

  3.   

    你为什么要用这种方法  用WebRequest啊