以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 网页取数 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=130134) |
||||
-- 作者:lshshlxsh -- 发布时间:2019/1/14 12:05:00 -- 网页取数 http://www.yyfdc.com.cn/list_clf_New.aspx
的内容也获取到表格? |
||||
-- 作者:有点甜 -- 发布时间:2019/1/14 12:19:00 -- 改成
Dim wy As WinForm.WebBrowser = e.Form.Controls("WebBrowser1") Dim web As System.Windows.Forms.WebBrowser = wy.basecontrol Dim Cols() As String = {"序号","区域","坐落","面积","协议价格","成交日期" } Dim elems As object = web.Document.GetElementById("grid_list").GetElementsByTagName("tr") Dim m As Integer = 0 t1.Table.AddNew For Each tdelem As object In tdelems |
||||
-- 作者:lshshlxsh -- 发布时间:2019/1/14 12:34:00 -- 谢谢老师 如果要循环读取所有页面 的内容要怎么写 |
||||
-- 作者:有点甜 -- 发布时间:2019/1/14 14:54:00 -- Dim wy As WinForm.WebBrowser = e.Form.Controls("WebBrowser1") Dim web As System.Windows.Forms.WebBrowser = wy.basecontrol
|
||||
-- 作者:lshshlxsh -- 发布时间:2019/1/14 15:29:00 -- 谢谢老师 |