• 26-10-2015, 20:44:31
    #1
    İyi günler R10 Ailesi elimde $baslik adında Bir başlık atadığımı Düşünürsek Bu başlığa göre google görsellerde ilk çıkacak resmin url'sini çeken kodu benimle paylaşabilir misiniz
  • 26-10-2015, 23:09:52
    #2
    The Google Image Search API must be used for user-generated searches. Automated or batched queries of any kind are strictly prohibited.

    bu bilgi ışığında ;
    $url = "https://ajax.googleapis.com/ajax/services/search/images?" .
    "v=1.0&q=barack%20obama&userip=INSERT-USER-IP";

    // sendRequest
    // note how referer is set manually
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_REFERER, /* Enter the URL of your site here */);
    $body = curl_exec($ch);
    curl_close($ch);

    // now, process the JSON string
    $json = json_decode($body);

    ayrıca bkz : https://developers.google.com/image-...1/jsondevguide
    ayrıca bkz : https://github.com/google/google-api...mple-query.php
    ve ayrıca bkz : https://developers.google.com/custom...erview#pricing

    kolay gelsin
  • 26-10-2015, 23:34:54
    #3
    Teşekkürler