Posts Tagged ‘Google’

.NET’s CultureInfo do not support all languages in ISO 639-1

July 4, 2009

When I wanna replace the Language enum in Google translate API for .NET, I found that, there are at two three language that Google supported but .NET Framework not.

The Filipino (tl) or Tagalog;

The Maltese (mt).

And the Hebrew, Google use “iw” as the code for its language api, but .NET and ISO 639 use “he”.

Well, where is the Babel?!

Advertisements

Google Search API for .NET 0.2 beta and Google Translate API for .NET 0.2 beta released

October 8, 2008

Update4

No more default http referrer. User must set it as a parameter of constructor.

Delete old Translator and Searcher classes.

Updated comments for better document.

Update3

Change all API Using string parameter instead of enum parameter.

Add new Enumeration class and enumerations for API parameters.

The API changed a lot this time. Please let me know whether you like these changes or not.

Update2

All codes are refacted (StyleCop format).

Update the APIs to support latest Google APIs.

Now can customize referrer, accept language, API key and timeout times.

Update1

Update the supported language list for Google translate api.

Set “http://code.google.com/p/google-api-for-dotnet/” as the default http referrer. (Now you cannot set your own http referrer)

No more v0.2, new features will come with v0.3.

Google APIs for .NET

Provides simple, unofficial, .NET Framework APIs for using Google Ajax RestFULL APIs (Search API, Language API etc.)

How LAZY I am. I should release nearly a month ago.

Indeed, 99+% of source have been finished when I release the Google Search API for .NET 0.1 and Google Translate API for .NET 0.1.1.

I just wait some bugs from the last versioin, so I can do some change.

I do fixed one bug, only one.

Ok, see what’s new.

The new versions are nearly no different for using, but the foundation is changed.

Replace Json.NET 2.0 by Microsoft official WCF.

And implement the HttpUtility, so not need the System.Web any more.

It now support .NET 3.5 sp1 Client Profile.

You can download here:

GoogleSearchAPI_0.3.1.zip

GoogleTranslateAPI_0.3.1.zip

More in formations, please visit the project’s site:

http://code.google.com/p/google-api-for-dotnet/

Google Search API for .NET 0.1 released

September 17, 2008

Well! Use this API to search Lehman Brothers.

Google Search API for .NET is a part of Goolge APIs for .NET project.

This project provides simple, unofficial, .NET Framework APIs for using Google Ajax RestFULL APIs (Search API, Language API etc.)

Description:

Provides a simple, unofficial, .NET Framework API for using Google Ajax Search API service.

Feature:

  • Support all 8 Google Search APIs.
  • CLS compatible. It can be used by any .NET languages (VB.NET, C++/CLI etc.)
Google Search APIs State
Google Web Search API supported
Google Local Search API supported
Google Video Search API supported
Google Blog Search API supported
Google News Search API supported
Google Book Search API supported
Google Image Search API supported
Google Patent Search API supported

Required:

  • .NET Framework 3.5. (You can build your own project on .NET 2.0, but you need to install .NET 3.5 to run this library).

Update:

You can download here:

GoogleSearchAPI_0.1.zip

You can visit the site of the project for all downloads, source,  examples and other information.

http://code.google.com/p/google-api-for-dotnet/

Google Search API for .NET 0.1 alpha 6 (support 7 Google Search APIs)

June 21, 2008

I’m so tired.

You cannot image how tired I am.

It’s not about this project but other things. Everyone will encounter some problems. It’s OK. It will be gone.

I keep working on this project, even I think my brain will bomb at any moment.

It’s nearly finished.

Now I need stop and have a rest. I need more test and response.

I love open source.

Google Search API for .NET is a part of Goolge APIs for .NET project.

This project provides simple, unofficial, .NET Framework APIs for using Google Ajax RestFULL APIs (Search API, Language API etc.)

Description:

Provides a simple, unofficial, .NET Framework API for using Google Ajax Search API service.

Feature:

  • Now support 7 Google Search APIs.
  • CLS compatible. It can be used by any .NET languages (VB.NET, C++/CLI etc.)
Google Search APIs State
Google Web Search API supported
Google Local Search API not support
Google Video Search API supported
Google Blog Search API supported
Google News Search API supported
Google Book Search API supported
Google Image Search API supported
Google Patent Search API supported

Required:

  • .NET Framework 2.0 or newer version.

You can download here:

GoogleSearchAPI_0.1_alpha_6.zip

You can visit the site of the project for all downloads, source,  examples and other information.

http://code.google.com/p/google-api-for-dotnet/

Google Search API for .NET 0.1 alpha 5

June 13, 2008

Google Search API for .NET is a part of Google APIs for .NET.

This project will provides simple, unofficial, .NET Framework APIs for using Google Ajax RestFULL APIs (Search API, Language API etc.)

The Google Translate API for .NET will also be a part of it (Indeed I have just released a new version there).

Now it support the Google Web Search API ,Google News Search API, Google Blog Search API and Google Video Search API.

I’ll add the support of all Google Search APIs(GwebSearch, GlocalSearch, GvideoSearch, GblogSearch, GnewsSearch, GbookSearch, GimageSearch, GpatentSearch) in the future.

Google Search API for .NET 0.1 alpha 5

Description:

Provides a simple, unofficial, .NET Framework API for using Google Ajax Search API service.

Feature:

  • Now support the Google Web Search API ,Google News Search API, Google Blog Search API, Google Video Search API and Google Book Search API.
  • CLS compatible. It can be used by any .NET languages (VB.NET, C++/CLI etc.)

Required:

  • .NET Framework 2.0 or newer version.

Example:

Google Web Search:

class Example
{
    public static void Main()
    {
        // Search 32 results of keyword : "Google APIs for .NET"
        IList<IWebResult> results = GwebSearcher.Search("Google API for .NET", 32);
        foreach(IWebResult result in results)
        {
            Console.WriteLine("[{0}] {1} => {2}", result.Title, result.Content, result.Url);
        }
    }
}

Google News Search:

class Example
{
    public static void Main()
    {
        // Search 16 results of keyword : "Olympic", local : "Beijing"
        IList<INewsResult> results = GnewsSearcher.Search("Olympic", 16, "Beijing");
        foreach(INewsResult result in results)
        {
            Console.WriteLine("[{0}, {1} - {2:d}]{3} => {4}", result.Publisher, result.Location, result.PublishedDate, result.Title, result.Url);
        }
    }
}

Google Blog Search:

class Example
{
    public static void Main()
    {
        // Search 32 results of keyword : "Coldplay"
        IList<IBlogResult> results = GblogSearcher.Search("Coldplay", 32);
        foreach(IBlogResult result in results)
        {
            Console.WriteLine("[{0} - {1:d} by {2}] {3} => {4}", result.Title, result.PublishedDate, result.Author, result.Content, result.BlogUrl);
        }
    }
}

Google Video Search:

class Example
{
    public static void Main()
    {
        // Search 32 results of keyword : "South"
        IList<IVideoResult> results = GVideoSearcher.Search("South Park", 32);
        foreach(IVideoResult result in results)
        {
            Console.WriteLine("[{0} - {1} seconds by {2}] {3} => {4}", result.Title, result.Duration, result.Publisher, result.Content, result.Url);
        }
    }
}

Google Book Search:

class Example
{
    public static void Main()
    {
        // Search 10 result of keyword : "Grimm's Fairy Tales"
        IList<IBookResult> results = GbookSearcher.Search("Grimm's Fairy Tales", 10);
        foreach(IBookResult result in results)
        {
            Console.WriteLine("{0} [by {1} - {2} - {3} pages] {4}", result.Title, result.Authors, result.PublishedYear, result.PageCount, result.BookId);
        }
    }
}

You can download here:

GoogleSearchAPI_0.1_alpha_5.zip

Visite the Google APIs for .NET project for more information.

Google Translate API for .NET 0.1 Release!

June 3, 2008

Update 1

Google Translate API for .NET updated to 0.1.1

  • Add more languages.
  • Fixed some bugs.

Download: GoogleTranslateAPI_0.1.1.zip

Now this project is a part of the Google APIs for .NET which include more Google APIs such as Search API etc.

I will never update here anymore.

You can get the latest source code and released files at the Google APIs for .NET.

I’ve just released an updated CLS compatible version of Google Translated API there.

GoogleTranslateAPI_0.1.zip (CLS compatible version)

—————————————–

It’s my first Open Source project.

http://code.google.com/p/google-language-api-for-dotnet/

Provides a simple, unofficial, .NET Framework API for using Google Translate.

Support 20+ languages.

It can translate text or html format, and can detect the language of the given text.

Now implement all the function that google has launched.

Example :

class Example
{
    public static void Main()
    {
        string text = "我喜欢跑步。";
        string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English);
        Console.WriteLine(translated);
        // I like running.
    }
}

More result:

Arabic صور اداة ترجمة.
Bulgarian Google превежда инструмент.
Chinese Simplified Google翻译工具。
Chinese Traditional Google翻譯工具。
Croatian Google Translate tool.
Czech Google přeloží nástroje.
Danish Google oversætter værktøj.
Dutch Google vertalen tool.
English Google translate tool.
Finnish Google kääntää työkalu.
French Outil de traduction Google.
German Google Translate-Tool.
Greek Google μεταφράζει εργαλείο.
Hindi Google अनुवाद उपकरण है .
Italian Google Translate strumento.
Japanese Google翻訳ツールを使用します。
Korean 구글 번역 도구를합니다.
Norwegian Google Translate.
Polish Narzędzie Google tłumaczyć.
Portuguese Traduz Google ferramenta.
Romanian Google traduce instrument.
Russian Google переводит инструмент.
Spanish Traductor Google herramienta.
Swedish Google översätter verktyg
You can download here:
GoogleTranslateAPI_0.1.zip