How to fetch some part of a website using PHP?

Discussion in 'PHP' started by bobbili, Sep 26, 2010.

  1. #1
    bobbili, Sep 26, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Generally speaking, you fetch the remote file and then you can extract the data you are after either by
    searching for a string, or a regexp based on the markup of the site. Of course, this will require maintenance
    in case the site changes their layout.

    However, you might also want to check the T&C's from that site.

    <!-- WARNING: Automated extraction of data is prohibited under the Terms of Use. -->
    Code (markup):
     
    lukeg32, Sep 27, 2010 IP