Web Hosting Talk







View Full Version : Google, Yahoo, etc script on your website


ic3d
09-04-2006, 03:24 PM
Hi everyone,

I would like to use a script where the visitor can search a selected searchengine from a dropdown box. For example Google, Google Images, Google Video, Yahoo, Youtube, Videosearch, etc.

If it would be possible, but i don't think it is, it would be very cool if the searchresults appear on my own site instead of a popuplink trough the selected searchengine. Ofcoarse the logo of the selected engine will be added to that page.

Do you guys have any clue where to start?

Badie
09-04-2006, 04:38 PM
hi
i dont know exactly they do it , but you can make query for google and then its will reply the data as xml , then you read the xml file and display in the way you like , same as news feed ..
i guess you need to see this
http://code.google.com/apis/ajaxsearch/signup.html

sea otter
09-04-2006, 04:44 PM
Most major search engines have a programming API that lets you call the search engine from your own code, get the results, and then format/display them as you wish.

In each case you need to sign up for the developer program and get your own personal "access key". Signing up is free, and developer keys are provided instantaneously.

Make sure you read the terms of service; there are limits on how many searches you can perform in a 24-hour period, how you can use the results, etc.

Here are some URLs for signing up as a developer:

Google: http://www.google.com/apis/
Yahoo: http://developer.yahoo.com/
MSN: http://msdn.microsoft.com/live/gettingstarted/default.aspx

Each site has specific examples on how to use the APIs.

ic3d
09-05-2006, 07:50 AM
Thank you for the antwers.

I managed to create a script that uses Google but is displayed on my own website.

However, perhaps i want things easier. Just a simple searchfield and a dropdownfield containing Google, Google News, Google Video, Yahoo, Wikipedia, and Youtube. Doesn't matter if the visitor gets forwarded to the real serps.

Omega-Mark
09-05-2006, 10:14 AM
you'll need a query that executes a query depending on which site is selected. as all sites ar bound to use different variables.

ic3d
09-05-2006, 11:09 AM
I understand, but to be honoust, iam not a programmer, perhaps you could point me in to the right direction, or perhaps there already is a certain script like this (i know a lot of sites use somthing simular, but ofcoarse when you're looking for it, you can't find it).

sspt
09-05-2006, 12:07 PM
A few months ago i've made a simple php script which will read the output page and show the results in my website. Unfortunatly after 1000 querys/day google bans the server ip.

Omega-Mark
09-05-2006, 05:53 PM
A few months ago i've made a simple php script which will read the output page and show the results in my website. Unfortunatly after 1000 querys/day google bans the server ip.

sounds like a pretty nifty script.

ic3d, if perhaps you could find something along the lines of it i'm sure that one or a few of us here at WHT would kindly help you in getting the code how you want it.

asko
09-10-2006, 09:09 AM
sspt, would you consider sharing your php script?