Hello,
I am a beginner at VBA.
I am trying to retrieve the prices of all the sellers displayed on a product page on the Amazon website.
For now, I managed to create the below code which should open the web page and get the HTML code , but I get an error 462 "the remote server machine does not exist or is unavailable"
Could you please help me understanding why?
I am a beginner at VBA.
I am trying to retrieve the prices of all the sellers displayed on a product page on the Amazon website.
For now, I managed to create the below code which should open the web page and get the HTML code , but I get an error 462 "the remote server machine does not exist or is unavailable"
Could you please help me understanding why?
VBA Code:
Sub InternetExplorerObject()
Dim IEObject As InternetExplorer
Set IEObject = New InternetExplorer
IEObject.Visible = True
IEObject.Navigate URL:="https://www.amazon.fr/dp/B084CQ41M2/?psc=1", Flags:=navOpenInNewWindow
Do While IEObject.Busy = True Or IEObject.ReadyState <> READYSTATE_COMPLETE
Application.Wait Now + TimeValue("00:00:01")
Loop
Debug.Print IEObject.LocationURL
Dim IEDocument As HTMLDocument
Set IEDocument = IEObject.Document
'The simplest thing we can do is grab an element, and then the inner text.
Debug.Print IEDocument.getElementById("header").innerText
End Sub