Skip to content

Instantly share code, notes, and snippets.

@StefanWerW
Created September 10, 2018 13:57
Show Gist options
  • Save StefanWerW/16cbbd2146140dcb059c74c8ebba05e9 to your computer and use it in GitHub Desktop.
Save StefanWerW/16cbbd2146140dcb059c74c8ebba05e9 to your computer and use it in GitHub Desktop.
Function Scrape(url As String) As String
Dim Browser As InternetExplorer
Dim Document As htmlDocument
Set Browser = New InternetExplorer
Browser.Visible = False
Browser.navigate url
Do While Browser.Busy And Not Browser.readyState = READYSTATE_COMPLETE
DoEvents
Loop
Scrape = Document.getElementById("receipt").getElementByTagName("a").href
Set Document = Nothing
Set Browser = Nothing
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment