Sounds to me like you're triggering the throttling mechanism, which is designed to prevent automated queries. A couple of ideas that might help:
Try spacing your requests by a few seconds each. This will make them look less like you're just trying to scrape results. Rather than check the languages of all the tweets at once, check the language only when they are displayed by an end user, say 20 at a time or so. You can cache the language codes, just as you would be doing with your bigger script, but you would only make 20 requests or so in a burst, which should be okay. All of that said, please understand that I have made two very important assumptions with these suggestions: (a) you are using the v1 Language API and, (b) you are manually triggering this script that checks the languages of these tweets (i.e., you are in compliance with the TOS regarding automated queries, etc.). If either or both of these assumptions are incorrect, then this advice will not help you. The v2 API has a hard limit of 100,000 characters/day, and doing automated requests (e.g., robot, crawler, scraper, etc.), is strictly prohibited by the TOS (read that, illegal). Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Apr 5, 2011, at 5:48 AM, Raffael Herrmann wrote: > Hello, > I'm trying to detect in which language tweets are written. I've got a > small database with round about 700 tweets. I wrote a simple routine > in C# which uses the JSON interface to detect the language. At the > beginning all works fine. But after a hundret tweets it starts to give > back "ata" as the detected language. > What means this? I couldn't find any information about that > identifier. Also I wasn't able to find a limit rate for JSON requests > to the Language API. > > Greets, > Raffi > > -- > 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. > -- 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.
