The-dude Posted February 6, 2020 Share Posted February 6, 2020 Hey there! Does anyone know of a script already written that skims through a web page, looks for a specific word or link, opens that link, looks for specific verbiage on the page say "Sub & End Sub", copies the contents between "Sub a End Sub", saves it in a text or excel document, closes the document and then continues through the web page while also clicking a "next page" button if everything was copied from the links on that page? I'm trying to create an excel VBA library from code that's already been written by others from the following site <https://www.thespreadsheetguru.com/the-code-vault?offset=1487044378901>. I could do it manually but it would save me a lot of time to have it automated. Any suggestions would be greatly appreciated! Link to comment Share on other sites More sharing options...
Subz Posted February 6, 2020 Share Posted February 6, 2020 You could use IE functions or Webdriver with IE You could get the div with the classname "main-content", find each link that starts with "Read More" and open it, then look for p tag with classname "VBAText" copy the innerText to a file. Link to comment Share on other sites More sharing options...
The-dude Posted February 7, 2020 Author Share Posted February 7, 2020 @Subz I figured that was the case. Thanks for the tips! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now