by [])utch[]v[]aster (18 Submissions)
Category: Internet/HTML
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
This code will create a new instance of internet explorer (although it will not be set to visible.) then it will goto the URL of you choice, and once the web page has finished loading it will get a list of a wide variety of HTML elements and place them in the Treeview. As you can see this is much easier than parsing each of these links all by yourself, and probably faster too.
Please note that the loop waiting for the web page to load is very sloppy, but was just added to demonstrate this functionality. Normally there should be code in the DocumentComplete Event of the InternetExplorer object to handle this functionality. Also, this code can be VERY easily changed to include functionality for ALL HTML tags.