抓取京东商城的 京东价 如题最近 公司要看下 一些商品在京东的价格谁知道 京东的价格是个SPAN 貌似 是js 赋值的 很纠结 ! 我是在源文件里截取的 所以就找不到 价格了…………大神们 有什么好办法! 谢谢了 急急 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 其实可以截取的,不过得到的是图片,要对图片做分析,最终得到具体价格你可以看看google上的比价功能,可以显示京东等网站的价格。 谢谢各位大侠了 问题解决了 绑定到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 不过会很慢的……各位大侠 还有什么好办法 你为什么要用这种方法 用WebRequest啊 GridView多条件查询 分页问题!!!!? 新手请教ASP.NET的一些问题!关于数据绑定的 <META http-equiv="Content-Type" content="text/html; charset=gb2312"> 可以 <META h 数据库的一点问题 继承PAGE类后,把认证写在构造函数里不知为什么出错? gridview单击事件的如何响应 请问如何将我的电脑改装成服务器,让别人能访问我机器上的网页? 做到下面的操作能不能防止sql注入? 怎样实现asp.net和asp之间的参数传递? 生成html页面后,读出是乱码 求正则表达式,大人们 如何禁止&自动变成&
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
不过会很慢的……
各位大侠 还有什么好办法