- 帖子
- 15
- 主題
- 8
- 精華
- 0
- 積分
- 71
- 點名
- 0
- 作業系統
- windows 10
- 軟體版本
- offfice2016
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2017-8-6
- 最後登錄
- 2024-7-13
|
[發問] How to scrape this website dynamic data from Javascript with VBA?
Website: https://www.hangseng.com/en-hk/personal/insurance-mpf/e-mpf/fund-price-performance/
Targets of automate data scraping: fund price as highlighted in the below figure
Tools: VBA(Excel), Chrome driven by Selenium
The code started as below:- Chrome.ExecuteScript "window.open('https://www.hangseng.com/en-hk/e-services/e-mpf/fund-price- performance/price/','_blank');"
- Chrome.SwitchToNextWindow
- Chrome.FindElementByXPath("//a[text()='Acknowledge']").Click
複製代碼 Then I have no further idea to retrieve those specified data. Please provide help. Thanks a lot! |
|