Hello Jeremy, the forum at http://forums.techarena.in/software-development/1061197.htm is closed :-( However, I found that by using prepared statements it's possibly to escape strings automatically.
I'm more worried now about the TOS. I'm trying to see if there is any way I can contact members of the Google Search API so I can explain what I'm trying to do and get some feedback and suggestions on how to achieve that in a correct and legal way. I don't want to have troubles because of my ignorance in the matter. Thanks ofr the pointer! G. On Sep 4, 2:49 pm, gaston <[email protected]> wrote: > I halt all the experiments until I can read carefully the TOS :-( > > On Sep 2, 7:07 pm, Jeremy Geerdes <[email protected]> wrote: > > > And I just noticed this, and thought I'd give you a heads up. The > > Google AJAX APIs TOS prohibit the use of appliations which make > > automated queries to the API. I don't know how you're doing your 1000 > > queries twice daily, but I wouldn't want you to get busted on that > > clause. > > > Jeremy R. Geerdes > > Effective website design & development > > Des Moines, IA > > > For more information or a project > > quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee... > > [email protected] > > > Unless otherwise noted, any price quotes contained within this > > communication are given in US dollars. > > > If you're in the Des Moines, IA, area, check out Debra Heights > > Wesleyan Church! > > > And check out my blog, Adventures in Web Development, > > athttp://jgeerdes.blogspot.com > > ! > > > On Sep 2, 2009, at 10:22 AM, gaston wrote: > > > > Hello, > > > > I'm building an application to do the same kind of experiments. > > > Running multiple queries, each for a different search term. I'm using > > > Yahoo's API and Google's. So far I have no problem, running about 1000 > > > queries twice a day and using the estimatedResultCount. I understand > > > that this is very inaccurate. > > > > @Jeremy: you said: "Unfortunately, it is known to be highly > > > inconsistent and wildly inaccurate." > > > > Do you know where I can find an "offical" statement about this claim? > > > The reason I ask you this is because I could use that information to > > > better explain my experimental results. From my initial experiments I > > > can see that the google count is rather different from the number of > > > results I would obtain if I query Google through the Web interface but > > > I want to be sure that this is indeed due to restrictions on the > > > Google API. After all, there are many factors that affect this number, > > > e.g. the Google server that serves the query. > > > > The only problem I'm experiencing at the moment and so far I don't > > > know how to solve, is that I can't manage to escape/encode the query > > > part of the URI correctly, specially when I want to query terms that > > > have special characters like german characters for exmaple. I built > > > the application in Java and I've tried with URLEncode but it doesn't > > > work the way I want. Do you know which functions I can use in order to > > > escape the query part so I can build a correct URI to sent to Google > > > through the search API? > > > > thanks, > > > G. > > > > On Aug 29, 6:54 pm, mjc147 <[email protected]> wrote: > > >> I'm not too bothered about the accuracy (within reason of course) > > >> but, > > >> granted, the TOS could be a problem. > > > >> I would actually rather code the client in Java but couldn't find an > > >> appropriate Google Search API - is there one? > > > >> On Aug 28, 7:10 pm, Jeremy Geerdes <[email protected]> wrote: > > > >>> There are a couple of problems with your task as far as the Google > > >>> AJAX Search API is concerned. First, the closest thing to a result > > >>> count that the API offers is the cursor.estimatedResultCount > > >>> property. > > >>> Unfortunately, it is known to be highly inconsistent and wildly > > >>> inaccurate. It is generally a good idea NOT to rely on it for > > >>> mission- > > >>> critical functionality. And second, the API's TOS explicitly forbid > > >>> the use of applications which submit automated queries. In other > > >>> words, you would have to write your application in such a way that > > >>> you > > >>> would have some sort of user interaction before each of your queries > > >>> was run. For a set of several thousand, that would probably be a > > >>> problem. > > > >>> I would suggest that you use a different search API (e.g., Bing or > > >>> Yahoo!), but I know that at least Yahoo has a similar restriction on > > >>> automated queries. And frankly, I can't imagine that Bing wouldn't > > >>> as > > >>> well. > > > >>> Jeremy R. Geerdes > > >>> Effective website design & development > > >>> Des Moines, IA > > > >>> For more information or a project > > >>> quote:http://jgeerdes.home.mchsi.comhttp > > >>> ://jgeerdes.blogspot.comhttp://jgee... > > >>> [email protected] > > > >>> Unless otherwise noted, any price quotes contained within this > > >>> communication are given in US dollars. > > > >>> If you're in the Des Moines, IA, area, check out Debra Heights > > >>> Wesleyan Church! > > > >>> And check out my blog, Adventures in Web Development, > > >>> athttp://jgeerdes.blogspot.com > > >>> ! > > > >>> On Aug 28, 2009, at 1:41 AM, mjc147 wrote: > > > >>>> I want to run several thousand search queries for the sole > > >>>> purpose to > > >>>> find out the number of results for each search. The actual search > > >>>> results are of no interest to me. > > > >>>> What is the best way to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---
