+ อยากได้สคิปเสริชเวปทั่วโลกโดยใช้ API Google +

เริ่มโดย chonyagusa, 22 มีนาคม 2007, 22:48:38

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

chonyagusa

อยากได้สคิปเสริชทั่วโลก แบบเหมือนมีกูเกิ้ลในเวปเรา เอาระบบมันทั้งหมดมาในเวปเราอ่ะ

แล้วสามารถใส่โฆษณาแฝงของเราลงไปได้อ่ะ

ใครมีบ้าง ช่วยส่งให้ทีนะครับ หรือ PM มาก็ได้ หรือโพสแจกเลยก็ได้ แล้วแต่เลยอ่ะครับ

โครนอย่างไงก็ได้ แค่ดัดแปลง URL ก็ได้ อย่างไงก็ได้อ่ะครับ
[direct=https://maxiox.com]maxiox[/direct]
[direct=https://maxmazo.com]maxmazo[/direct]

[email protected]


Tee++;

ใน Google มีบอกไว้หมดเลยครับ ทั้งวิธีการต่อ ค่าที่ต้องส่งไป ค่าที่ได้รับคืนมา ถ้าเป็น api รุ่นเก่าจะใช้ SOAP แล้วคืนค่ากลับมาเป็น xml แต่ดึงได้แค่ 2,000 queries ต่อวัน

แต่ถ้าเป็นตัวใหม่จะเป็น ajax ซึ่งสามารถคืนค่าออกมาเป็น array ได้เลย สะดวกมากๆ แต่จำไม่ได้ว่า query ได้เท่าไหร่ต่อวัน

ตัวอย่างเล็กๆ น้อยๆ เอาไปเป็นแนวทางนะครับ

Search API

$baseurl = 'http://api.google.com/search/beta2';
$params = array(

'key' => $id,   // API key
'q'   => $_GET[query],    
'start' => 0,                                  
'maxResults' => 10,                          
'filter' => true,                            
'restrict' => '',                              
'safeSearch' => true,                        
'lr' => 'lang_en|lang_fr',                  
'ie' => '',                                  
'oe' => ''                                    
);
$soapclient = new soapclient($baseurl);
$data = $soapclient->call("doGoogleSearch", $params,
"urn:GoogleSearch", "urn:GoogleSearch");

print_r($data);


Ajax Search API

<script src="http://www.google.com/uds/api?file=uds.js&amp;v=0.1&amp;key=<? echo $APIKey; ?>" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var gWebSearch;
function OnLoad() {
   // Initialize the web searcher
   gWebSearch = new GwebSearch();
   gWebSearch.setResultSetSize(GSearch.LARGE_RESULTSET);
   gWebSearch.setSearchCompleteCallback(null, OnWebSearch);
   gWebSearch.execute("<? echo $_GET[q]; ?>");
}
function OnWebSearch() {
   if (!gWebSearch.results) return;
   var searchresults = document.getElementById("searchresults");
   searchresults.innerHTML = "";

   var results = "";
   for (var i = 0; i < gWebSearch.results.length; i++) {
       var thisResult = gWebSearch.results[i];
       results += "<p>";
       results += "<a href=\"" + thisResult.url + "\">" + thisResult.title + "<\/a><br \/>";
       results += thisResult.content + "<br \/>";
       results += "<span class=\"url\">" + thisResult.url + "<\/span>";
       if (thisResult.cacheUrl) {
           results += " - <a class=\"cached\" href=\"" + thisResult.cacheUrl + "\">Cached <\/a>";
       }
       results += "<\/p>";
   }
   searchresults.innerHTML = results;
}
//]]>
</script>
[direct=http://laravel.in.th]Laravel in Thai[/direct]
[direct=http://jquerytips.com]jQueryTips by Tee++;[/direct]
[direct=https://www.facebook.com/jQueryTips]jQueryTips Page[/direct]
[direct=https://www.facebook.com/Laravel.in.th]Laravel in Thai Page[/direct]
[direct=https://twitter.com/Teepluss]Teepluss's Twitter[/direct]


NSNOTTRUE

url=http://nutkabpom.org]It's my life.[/url]

sunkoster

อ้างถึงจาก: NSNOTTRUEhttp://www.nsfiles.info/uploads/1174919975.rar

google.com Search Engine Clone

ไม่รู้ใช้ได้ปะนะครับ

ถ้าเป็นตัวจากบิกโคลนแผ่น 1 ก็ใช้ได้เลยคับตัวนี้
แต่ในสคริมีลิงกลับ อยู่ด้วย แล้วก็ ปัปไอดีคนอื่นอยู่
ยังไงอย่าลืมแก้ด้วยคับ แล้วก็เอพีไอ เอาอันใหม่มาใส่นะอย่าเอาอันเดิมที่มีอยู่อิอิ
แล้วก็เซอจร์ไทย มันเพียนนะ ลองหาทางแก้ดู()อิอิ
  :lol:  :lol:
[direct=http://zfind.item69.com/]amazon advance search products[/direct] | [direct=http://zfind.item69.com/]amazon[/direct]

EThaiZone

ถ้าแกะ js ของ google
มันจะหักคอผมปะ ?

เห็นแล้วมันน่าแกะจริง ให้ตายเหอะ  :lol:

iamnewbies

และเลยจิ อยากได้มากเลยอะ แกะ java รุ่นใหม่ให้ดูดมาใช้ได้แบบรุ่นเก่าอะ
ุอิอิ  พลุบๆโพล่ๆ  เข้าๆออกๆ เสียวๆ

janeos

ajax ไม่จำกัด query ครับ

http://code.google.com/apis/soapsearch/api_faq.html#gen15

อ้างถึงจาก: Google11. What if I want to pay Google for the ability to issue more than 1,000 queries per day?

Google is no longer actively supporting the SOAP Search API, so we encourage you to use the AJAX Search API, which does not have a limit on the number of queries per day.

:arrow: http://code.google.com/apis/ajaxsearch/
[direct=http://www.siamseeker.com]ข่าว[/direct]  [direct=http://www.dunweb.net]ดันเว็บ[/direct] [direct=http://www.dunweb.net]โปรโมทเว็บ[/direct],

Tee++;

Ajax ตัวใหม่แกะมาดูดได้สบายๆ เลยครับไม่ยากไม่เย็นอะไรเลย สั่งเกตุว่าข้อมูลสุดท้ายจะถูกส่งมาที่ results การที่เราจะเอาข้อมูลนี้มาก็แค่ เอา input hidden มารับค่าไป แล้ว submit ไปแบบ auto เท่านั้นเองครับ เราก็จะได้ข้อมูลมา ปั่นเวบกันต่อแว้ว  :lol:  :lol:
[direct=http://laravel.in.th]Laravel in Thai[/direct]
[direct=http://jquerytips.com]jQueryTips by Tee++;[/direct]
[direct=https://www.facebook.com/jQueryTips]jQueryTips Page[/direct]
[direct=https://www.facebook.com/Laravel.in.th]Laravel in Thai Page[/direct]
[direct=https://twitter.com/Teepluss]Teepluss's Twitter[/direct]


EThaiZone

ajax มันจะส่งค่า referer แบบไหนเนี่ย ไม่เคยลองเช็ค  :?

sharingidea

อ้างถึงจาก: Tee++;Ajax ตัวใหม่แกะมาดูดได้สบายๆ เลยครับไม่ยากไม่เย็นอะไรเลย สั่งเกตุว่าข้อมูลสุดท้ายจะถูกส่งมาที่ results การที่เราจะเอาข้อมูลนี้มาก็แค่ เอา input hidden มารับค่าไป แล้ว submit ไปแบบ auto เท่านั้นเองครับ เราก็จะได้ข้อมูลมา ปั่นเวบกันต่อแว้ว  :lol:  :lol:

ขอตัวอย่าง code หน่อยจิ