Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Application
Hi,
 
I need to embed a Google search engine in my desktop application. I need to search in web.
 
The problem, that I don't want any browser window in my application. What I want is workflow similar to this:
1) Connect to the google server.
2) Request for the search.
3) Get search results in some structured format.
4) Display search results using my own UI.
 
So, is it possible with one of the current Google APIs?
Btw, I'm using Qt as a framework (if it might help).
 
Thanks.
Posted 31-Aug-10 23:18pm
progDes969

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can use the Google AJAX APIs in your desktop application, the API exposes a raw RESTful interface that returns JSON encoded results that are easily processed by most languages and run-times,however, a few special considerations that you want to take into account (e.g., the userip parameter which identifies the IP address of the client for which the query is being made). You also want to make sure to review the TOS in detail to make certain that your application won't be in violation of clauses such as the prohibition of robots, spiders, and other applications which make automated queries, etc. You can find a number of relevant resources, including code snippets for various languages that you might be considering using, at the links below.
TOS: http://code.google.com/apis/ajaxsearch/terms.html[^]
Documentation:
http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje[^]
http://code.google.com/apis/ajaxsearch/documentation/reference.html[^]
  Permalink  
Comments
progDes at 1-Sep-10 6:19am
   
Ok, thanks. This seems to be what I need.
CIDev at 21-Aug-12 12:37pm
   
If it gives you the solution you need you should mark it as the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 210
3 Afzaal Ahmad Zeeshan 204
4 CPallini 185
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100