Hello,
So i am not to experimented with VBA or HTML, but i am a pretty technical as i am a electrical technician by profession. I am trying my luck with web scraping to help in my endeavors of making something extra on the side.
The issue with my code is that it does not output anything but it does not give me any errors.
If anyone could point me in the right direction i would be nice.
Thank you
So i am not to experimented with VBA or HTML, but i am a pretty technical as i am a electrical technician by profession. I am trying my luck with web scraping to help in my endeavors of making something extra on the side.
The issue with my code is that it does not output anything but it does not give me any errors.
Code:
Sub TutorailsPoint()
Dim objIE As InternetExplorer
Dim http As New MSXML2.XMLHTTP60, html As New HTMLDocument
Dim topics As Object, posts As Object, topic As Object
Dim x As Long
Set objIE = New InternetExplorer
objIE.Visible = True
objIE.Navigate "https://www.unibet.ro/betting#filter/all/all/all/all/in-play"
'wait for page to load
Do While objIE.Busy = True Or objIE.readyState <> 4: DoEvents: Loop
x = 2
Set topics = html.getElementsByClassName("KambiBC-list-view KambiBC-event__list KambiBC-js-event-list KambiBC-list-view__column")
For Each posts In topics
For Each topic In posts.getClassName("KambiBC-event-item")
Cells(x, 1) = topic.innerText
x = x + 1
Next topic
Next posts
End Sub
If anyone could point me in the right direction i would be nice.
Thank you