Grabbing new content.. anyone?

Discussion in 'PHP' started by terryuk, Jun 19, 2006.

  1. #1
    Does anyone know how it's possible to make a cron to grab new content (videos/pictures) from a desired website. I have no idea where to start when thinking about this script, so help will be appreciated.

    Thanks
     
    terryuk, Jun 19, 2006 IP
  2. Big 'G'

    Big 'G' Member

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    48
    #2
    Curl is your friend her and is a very powerfully ally. I have written a very small test program that draggs certain posts from a forum then displays them on a web page, all using curl
     
    Big 'G', Jun 19, 2006 IP
  3. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #3
    Ok cool, i'll have to read up on that :) cheers
     
    terryuk, Jun 19, 2006 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    If the content is available in RSS, or an XML feed format, you can very easily use an RSS parser to automatically update your website when the content is updated. I have used magpie RSS and zfeeder on about 5 websites for that exact purpose.
     
    jestep, Jun 19, 2006 IP
  5. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #5
    Well, i can find some websites which use RSS where i can get this content, but i'd like to actually grab the files, so would it be hard finding out file paths, category etc..
     
    terryuk, Jun 19, 2006 IP