Need help with retrieving html data with VBA #145070
Unanswered
brooksr1
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
This webpage lists events for an organization:
https://www.meetup.com/cflfreethought/events/
Currently, there are 33 events, but only 10 are displayed initially when the page is loaded.
The remaining 23 events are retrieved when downward scrolling occurs. This may be called dynamic loading of the data or webpage.
Data is needed for all 33 events.
This VB code returns the data for the first 10 events which can be parsed out using strJson.
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate html_webpage
strJson = ie.Document.body.innertext
The difficulty is trying to obtain data for events 11 to 33.
Some things that have been tried:
Me!EdgeBrowser1.ExecuteJavascript "window.scrollBy(0, 5000);"
Me!EdgeBrowser1.ExecuteJavascript "window.scrollTo(0, document.body.scrollHeight);"
Neither of these have worked. An html expert is needed to advise how to retrieve the missing data. Thanks!
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions