1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Grab Prices From Feeds

Discussion in 'PHP & Perl' started by GREENBACKS, Nov 20, 2010.

  1. GREENBACKS

    GREENBACKS Newbie

    Joined:
    Apr 19, 2009
    Messages:
    33
    Likes Received:
    10
    Occupation:
    Bad Ass Mother****er
    Can some one please tell me where I need to look, or how I can update prices on a website using feeds.

    So say I had one product from 10 merchants, I just want the script to look up the price and stock in the feed and display in a table.

    Any ideas...
     
  2. Twizzler

    Twizzler Newbie

    Joined:
    Nov 4, 2010
    Messages:
    33
    Likes Received:
    7
    Occupation:
    Typing code.
    Location:
    Lost in cyberspace
    php and curl...
    Basically you need curl to make the connection grab the website source. Then you need to parse it so that it grabs the information that you need.

    Unless of course the merchants have a webservice or api then you can always use that as well.

    I know its brief but no use getting into detail on either if you dont know what the merchants provide.
     
  3. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Look at SimpleXML for parsing feeds, makes it a lot easier than trying to do it by hand :)