- 帖子
- 549
- 主題
- 152
- 精華
- 0
- 積分
- 691
- 點名
- 0
- 作業系統
- WIN7
- 軟體版本
- OFFICE 2010
- 閱讀權限
- 50
- 性別
- 男
- 註冊時間
- 2013-8-10
- 最後登錄
- 2022-9-7
 
|
網站無document可抓取問題
https://bet.hkjc.com/football/index.aspx?lang=ch
像這種aspx的網站
如果直接輸入元素
是可以控制
但沒有name 沒有 id 的元素
又無法跑for each e in ie.document
該如何指定元素執行click動作
或是如何抓取TABLE資料呢?- Set ie = CreateObject("InternetExplorer.Application")
- ie.Visible = True
- ie.Navigate "https://bet.hkjc.com/football/results/results.aspx?lang=CH"
- Application.Wait (Now + TimeValue("00:00:08"))
- ie.document.getElementById("secMenuFB").Click
複製代碼 |
|