alýn size google etiket botu sisteme entegre etmesini ufak bir ücret ile halledersiniz sanirim.
PHP- Kodu:
<font style="font-family: Trebuchet MS;font-size:11px;">
<?
function kelime($arat) {
$ch3 = curl_init();
curl_setopt($ch3, CURLOPT_URL, 'http://clients1.google.com/complete/search?hl=tr&gl=tr&q='.$arat);
curl_setopt($ch3, CURLOPT_POST, 0);
curl_setopt($ch3, CURLOPT_HEADER, 0);
curl_setopt($ch3, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch3, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch3, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
curl_setopt($ch3, CURLOPT_COOKIEJAR, "yonja.txt");
curl_setopt($ch3, CURLOPT_REFERER, "http://www.google.com.tr");
curl_setopt($ch3, CURLOPT_COOKIEFILE, "yonja.txt");
curl_setopt($ch3, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch3, CURLOPT_TIMEOUT, 30);
curl_exec($ch3);
$finish = curl_exec($ch3);
curl_close($ch3);
echo $arat."<br>";
preg_match_all('@"(.*?)","(.*?)","(.*?)"@si',$finish,$sk);
$s="1";
while($s<=count($sk[1])-1) {
$etiket=$sk[1][$s];
if($s=="0") {
$fot=$arat."\",[[\"";
$etiket=str_replace(array($fot),array(""),$etiket);
}
$etiket=str_replace(array("Åž","ÅŸ","Ç","ç","Ä°","Ãœ","ü","Ö","ö","Äž","ÄŸ","ı"),array("Þ","þ","Ç","ç","Ý","Ü","ü","Ö","ö","Ð","ð","ý"),$etiket);
$sonuc=str_replace(array("Åž","ÅŸ","Ç","ç","Ä°","Ãœ","ü","Ö","ö","Äž","ÄŸ","ı"),array("Þ","þ","Ç","ç","Ý","Ü","ü","Ö","ö","Ð","ð","ý"),$sk[2][$s]);
echo "<a href=\"google.php?ara=".$etiket."\">".$etiket."</a> <font color=green>(".$sonuc.")</font><br>";
$s++;
}
}
$kelime=str_replace(array("þ","ç","ý","ö","ü","ð"," "),array("%C5%9F","%C3%A7","%C4%B1","%C3%B6","%C3%BC","%C4%9F","%20"),$_GET[ara]);
kelime($kelime);
?>
<form action="google.php" method="GET" onsubmit="this.sa.value='Lütfen bekleyiniz'; return this.sa.disabled='disabled';">
Lütfen etiketleri çekmek istediðniz kelimeyi giriniz.
<br>
kelime: <input type="text" name="ara" style="font-family: Trebuchet MS;font-size:11px; width:200px;">
<input type="submit" value="çek bakalým" name="sa">
</form>