Jump to content

Skim Through Web Page Copy Contents

Recommended Posts

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!

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...