iframe/html scraping?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • victorduwon
    New Member
    • Nov 2007
    • 32

    iframe/html scraping?

    Hi guys,

    I wanted to know if anyone knew if it was possible to use iframe to view only a particular section of a site in another page. I ask because I want to view only the body of a particular site without the header and footer or ads on another site. The site in question is public domain, so there are no copyright issues. I thought of using iframe, but I don't know if it it possible to do so and only view certain parts of the site. If anyone can help me out on this I would appreciate it, or just point me in the right direction.

    Thanks

    Vic.
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by victorduwon
    Hi guys,

    I wanted to know if anyone knew if it was possible to use iframe to view only a particular section of a site in another page. I ask because I want to view only the body of a particular site without the header and footer or ads on another site. The site in question is public domain, so there are no copyright issues. I thought of using iframe, but I don't know if it it possible to do so and only view certain parts of the site. If anyone can help me out on this I would appreciate it, or just point me in the right direction.

    Thanks

    Vic.
    Hello Vic:
    To my knowledge you can not do this. The only way that I know of is to down load that web page and then make a new page for that section. Then make a iframe for it.

    nomad

    Comment

    • victorduwon
      New Member
      • Nov 2007
      • 32

      #3
      That's an interesting idea. Thanks for the suggestion. But is there a way automate it? The page I want is from the National Weather service here in America. I have tried using their XML feed, but it is too unreliable, and breaks my pages regularly. Is there anyway I can do this automatically? I would want it to update on a regular basis. I build my pages in html, but the backend is in lassoscript.

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Originally posted by victorduwon
        That's an interesting idea. Thanks for the suggestion. But is there a way automate it? The page I want is from the National Weather service here in America. I have tried using their XML feed, but it is too unreliable, and breaks my pages regularly. Is there anyway I can do this automatically? I would want it to update on a regular basis. I build my pages in html, but the backend is in lassoscript.
        you might look to see if that page has any anchor points on it. If it does then your might be in business.

        nomad

        Comment

        • victorduwon
          New Member
          • Nov 2007
          • 32

          #5
          Actually, Nomad it has quite a few anchors. Have a look for yourself:

          http://www.wrh.noaa.go v/forecast/MapClick.php?si te=lox&smap=1&t extField1=34.09 9548&textField2 =-118.41432&degre es=F

          Comment

          • nomad
            Recognized Expert Contributor
            • Mar 2007
            • 664

            #6
            Originally posted by victorduwon
            Actually, Nomad it has quite a few anchors. Have a look for yourself:

            http://www.wrh.noaa.go v/forecast/MapClick.php?si te=lox&smap=1&t extField1=34.09 9548&textField2 =-118.41432&degre es=F

            I took a quick scan over the code and I really did find a couple of anchor points
            [HTML]<a name="contents" >[/HTML]

            so you then could do this
            http://www.wrh.noaa.go v/forecast/MapClick.php?si te=lox&smap=1&t extField1=34.09 9548&textField2 =-118.41432&degre es=F#content

            this will point to that part of the web page.

            Hopefully this info will help you finding the anchor point if there is one that you want to use.

            nomad

            Comment

            Working...