Я хочу получить данные из "https://www.oanda.com/currency/converter/" в Excel, используя vba (например, от USD к EUR). Я попытался сделать следующий код ... но он все еще не работает
Sub PullData()
Dim IE As Object
Dim doc As HTMLDocument
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "https://www.oanda.com/currency/converter/"
Do While IE.Busy Or IE.ReadyState <> 4
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.Document
doc.getElementById("quote_currency_input").Value = "EURO"
doc.getElementById("base_currency_input").Value = "US Dollar"
Do While IE.Busy Or IE.ReadyState <> 4
Application.Wait DateAdd("s", 1, Now)
Loop
MsgBox doc.getElementsByClassName("want").Item(0).innerText
IE.Quit
End Sub