Php İle Yapmış Olduğumuz Bot Uygulaması Kodları Paylaşıyoruz..:)

16/08/2017, 21:53

kral4

<?php
$site ="http://www.sanalpazar.com/snopy-rampage-sn-r9-oyuncu-mikrofonlu-kulaklik/i-77192800?malid=SP_MYD_77192800";


$parcala1='@<h1 class="sp-font-16-b-black">(.*?)</h1>@si';
$parcala2='@<span class="sp-font-16-b-darkgreen p-left-5" id="au_price">
    (.*?),<sup>(.*?)</sup> TL     </span>@si';

$parcala3='@<img class="item-img-size float-ini" name="main_ad_image" src="(.*?)" border="0" title="(.*?)" alt="(.*?)">@si';

$parcala4='@<input type="image" name="shoping_cart_add" src="(.*?)" alt="Sepete Ekle" title="(.*?)">
@si';




$botara =file_get_contents($site);
$botara2 =file_get_contents($site);
$botara3 =file_get_contents($site);
$botara4 =file_get_contents($site);

preg_match_all($parcala1,$botara,$baslik);
preg_match_all($parcala2,$botara,$fiyat);
preg_match_all($parcala3,$botara,$resim);
preg_match_all($parcala4,$botara,$sepet);

//print_r($baslik);
//print_r($fiyat);
//print_r($resim);
//print_r($sepet);

echo $baslik[0][0];
echo $fiyat[0][0];
echo $resim[0][0];
echo $sepet[0][0];


?>