
<? $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://adres strony'); curl_setopt($curl, CURLOPT_REFERER, "http://www.google.pl/"); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.googlebot.com/bot.html)'); curl_setopt($curl, CURLOPT_TIMEOUT, 30); curl_setopt($curl, CURLOPT_HEADER, 0); $strona = curl_exec($curl); curl_close($curl); ?>
Chciałbym z ze strony wyciągnąć dane które wyglądają nastepująco:
<tr class="rowEven clickable"> <td class="cellPhoto"> <img src="http://photos02.allegroimg.pl/photos/64x48...74/52/868745275" width="64" height="48" alt="AGREGAT PRĄDOTWÓRCZY 3 KW 2800W!! FV SKLEP" title="AGREGAT PRĄDOTWÓRCZY 3 KW 2800W!! FV SKLEP"/> </a> </td> <td class="cellName"> class="alleLink"> <span>AGREGAT PRĄDOTWÓRCZY 3 KW 2800W!! FV SKLEP</span></a> </td> <td class="cellPrice"><img src="http://static.allegrostatic.pl/site_images...buy_now_ico.gif" alt="" title="" class="tomiddle" /> 899,00 zł</td> <td class="cellTrans">929,00 zł</td> <td class="cellOffer">-</td> <td class="cellTime">7 dni</td> </tr>
Z góry dziękuję za pomoc.