Save a web page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fiefie.niles@gmail.com

    Save a web page

    I would like to save a web page to a file. When I do that, sometimes
    the saved web page does not look like the original web page.
    For example, when I save www.msn.com, it looks very different the
    original page.
    How can I save the web page to look like the original (as if I do
    "File" - "Save As" and under "Save as Type" select "Web Page, complete
    (*.htm,*.html)" ? Thank you.

    This is how I save the web page:
    Set fs = CreateObject("S cripting.FileSy stemObject")
    Set filePtr = fs.CreateTextFi le("c:\abc.htm" , True)
    filePtr.WriteLi ne (WebBrowser1.Do cument.body.inn erHTML)

  • Jay

    #2
    Re: Save a web page

    It doesnt work for the same reason i sent you the last post.



    <fiefie.niles@g mail.comwrote in message
    news:1156610454 .708388.321240@ 74g2000cwt.goog legroups.com...
    >I would like to save a web page to a file. When I do that, sometimes
    the saved web page does not look like the original web page.
    For example, when I save www.msn.com, it looks very different the
    original page.
    How can I save the web page to look like the original (as if I do
    "File" - "Save As" and under "Save as Type" select "Web Page, complete
    (*.htm,*.html)" ? Thank you.
    >
    This is how I save the web page:
    Set fs = CreateObject("S cripting.FileSy stemObject")
    Set filePtr = fs.CreateTextFi le("c:\abc.htm" , True)
    filePtr.WriteLi ne (WebBrowser1.Do cument.body.inn erHTML)
    >

    Comment

    • Sneha Menon

      #3
      Re: Save a web page


      fiefie.niles@gm ail.com wrote:
      I would like to save a web page to a file. When I do that, sometimes
      the saved web page does not look like the original web page.
      For example, when I save www.msn.com, it looks very different the
      original page.
      How can I save the web page to look like the original (as if I do
      "File" - "Save As" and under "Save as Type" select "Web Page, complete
      (*.htm,*.html)" ? Thank you.
      >
      This is how I save the web page:
      Set fs = CreateObject("S cripting.FileSy stemObject")
      Set filePtr = fs.CreateTextFi le("c:\abc.htm" , True)
      filePtr.WriteLi ne (WebBrowser1.Do cument.body.inn erHTML)
      ---------------------------------------------------------------------------------------
      Hi FieFie

      The reason for the different look is

      (to put it very briefly)
      Unlike the earlier times NOW there are a lot of
      web authoring technologies/languages
      that incorporate javascript, asp, php, DHtml, SHtml, CSS, perl, cgi and
      so on
      When a web page with straight HTML is saved to the hard disc
      it also collects the image files linked from that page.
      But in cases where other languages and technologies are used
      the save method cannot grab ALL the resources needed to
      display the page in its original layout

      Some web authers purposely make their Javascript, CSS or
      other resources unavailable for caching/Saving.
      In some cases, it is by design.

      As far as I know there is no legal methods to solve this
      If it is that much important and..
      If the site provides open for all FTP access, you shall
      manually collect the resources and reconstruct the
      directory Structure. (The second IF in this para
      make it almost impossible)

      There are some softwares of shady origin that would
      grab the Whole Portal and download it to your PC
      but do not go for that kind of unethical practices

      Sneha (India)
      spiderangelo@gm ail.com
      ----------------------------------------------------------------------------------------

      Comment

      • Larry Serflaten

        #4
        Re: Save a web page


        <fiefie.niles@g mail.comwrote
        I would like to save a web page to a file. When I do that, sometimes
        the saved web page does not look like the original web page.
        For example, when I save www.msn.com, it looks very different the
        original page.
        How can I save the web page to look like the original (as if I do
        "File" - "Save As" and under "Save as Type" select "Web Page, complete
        (*.htm,*.html)" ? Thank you.
        >
        This is how I save the web page:
        Set fs = CreateObject("S cripting.FileSy stemObject")
        Set filePtr = fs.CreateTextFi le("c:\abc.htm" , True)
        filePtr.WriteLi ne (WebBrowser1.Do cument.body.inn erHTML)
        See if this example gets you a little farther along....



        LFS


        Comment

        Working...