ojsimon Posted March 2, 2008 Share Posted March 2, 2008 Hi I would like to get the price of pricerunner reult pages, what would be the best way to do this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/93995-get-price-of-pricerunner/ Share on other sites More sharing options...
AndyB Posted March 2, 2008 Share Posted March 2, 2008 The best start would be to ask a question with enough information that it will mean something to us. Who, what, and where is this pricerunner would be a good start, along with what you want to get and what you want to do with it. Quote Link to comment https://forums.phpfreaks.com/topic/93995-get-price-of-pricerunner/#findComment-481579 Share on other sites More sharing options...
ojsimon Posted March 2, 2008 Author Share Posted March 2, 2008 Sorry for not being clear. I would like to get the price of the search results from http://www.pricerunner.co.uk/ for example http://www.pricerunner.co.uk/cl/1/Mobile-Phones?search=Nokia&other_hits=42%3Anokia%7C199%3Anokia%7C28%3Anokia%7C94%3Anokia%7Cx%3B%3B15%3B&q=nokia&ref=redirect what would be the best way to get the best price for the first lisiting Thanks Quote Link to comment https://forums.phpfreaks.com/topic/93995-get-price-of-pricerunner/#findComment-481600 Share on other sites More sharing options...
sasa Posted March 2, 2008 Share Posted March 2, 2008 try <?php $a = file_get_contents('http://www.pricerunner.co.uk/cl/1/Mobile-Phones?search=Nokia&other_hits=42%3Anokia%7C199%3Anokia%7C28%3Anokia%7C94%3Anokia%7Cx%3B%3B15%3B&q=nokia&ref=redirect'); preg_match_all('/title="Compare prices - ([^"]+)"[^Ł]+Best price Ł([0-9\.]+)/s', $a, $b); $c = array_combine($b[1],$b[2]); print_r($c); ?> Quote Link to comment https://forums.phpfreaks.com/topic/93995-get-price-of-pricerunner/#findComment-481726 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.