Using PHP to pull market prices off of EBay

Discussion in 'PHP' started by omgfixit.com, Apr 23, 2010.

  1. #1
    I'm building a website database for a buy/sell/trade store. They want to get real time online prices for cellphones based on ebay. I want to automate this process by showing the phone and the price. Any ideas? I'm pretty green when it comes to PHP but i hear it will change my life.
     
    omgfixit.com, Apr 23, 2010 IP
  2. skywebsol

    skywebsol Well-Known Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    use CURl to get the live price from ebay
     
    skywebsol, Apr 23, 2010 IP
  3. carfanatic01

    carfanatic01 Peon

    Messages:
    239
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot for this one, and i hope this is gonna help me in my eBay problem..
     
    carfanatic01, Apr 23, 2010 IP
  4. taduyducvn

    taduyducvn Greenhorn

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    you need a script for your CURL functions, just make one so that you can easily call, parse, select DOM everytime.
     
    taduyducvn, Apr 23, 2010 IP
  5. raid

    raid Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    cURL or file_get_contents and organize the data.
     
    raid, Apr 23, 2010 IP
  6. pakistanvoices

    pakistanvoices Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Agree with all of you. Use CURL, it's prefect but you are going to automate this process for long time then the continuous curl request may block your IP by eBay so try to use some proxy with curl call and give the proper user agent. Enjoy
     
    pakistanvoices, Apr 24, 2010 IP
  7. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #7
    You dont need to bother with a proxy, ebay provide a public API where you can pull the data from.

    Using curl is fine, if your server allows it. See here for full info;
    http://developer.ebay.com/
     
    lukeg32, Apr 24, 2010 IP
  8. omgfixit.com

    omgfixit.com Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks alot everyone. this is great information.
     
    omgfixit.com, Apr 24, 2010 IP
  9. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #9
    your welcome - if you get stuck then feel free to pm - ive used ebays api quite a lot over many jobs. :)
     
    lukeg32, Apr 24, 2010 IP
  10. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #10
    Why don't you just use the ebay api? Very very easy to get the prices for any items if you know the term, category, product code etc. Integrates with php in about 10 lines of code, very simple.
     
    Silver89, Apr 24, 2010 IP