Results 1 to 3 of 3

Thread: [RESOLVED] Save ENTIRE Webpage From URL...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013
    Posts
    190

    Resolved [RESOLVED] Save ENTIRE Webpage From URL...

    I'm using the urlmon api to download the html from a url, though it doesn't get all of the code.

    Using Chrome, I can right click on an object on the page and select "Inspect element", which shows me the code that was used to create the object....... but for some reason that code isn't in what I downloaded using urlmon.

    I've also used a webbrowser control and saved the page using execwb, but it still doesn't show the code I find when I inspect the element in Chrome. When I save the page from within Chrome, it obtains the code, so I know the code is there, I just don't know how to retrieve it in VB.

    Upon further investigation, I think it might be because there are several different frames. If that's the case, how do I download all of the frames?

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Save ENTIRE Webpage From URL...

    Keep in mind that when you get the source code from a WebSite the links in the source code are usually incomplete.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013
    Posts
    190

    Re: Save ENTIRE Webpage From URL...

    Okay, after further research I've figured it out. If there are frames on the page, the DocumentComplete event will fire for every frame. It's just a matter of saving as .htm each time the event is fired.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width