Wondering how you get the results from Google's Dictionary

16 views
Skip to first unread message

devthepper

unread,
Jul 26, 2008, 2:07:33 PM7/26/08
to Translate.Net support
Wondering how you get the results from Google's Dictionary, NOT the
translator.
Hey there, I have been looking into using Google's translating
DICTIONARY aspect, but they only have the Translator API open, and am
confused on how you were able to successfully work with the dictionary
data.

Here is an excerpt of what the code looks like from google after the
Dictionary runs a search on the word "sabiduría".

Google's:
http://www.geocities.com/devthepper/googles.htm

and here is your program's
Translate.Net's
http://www.geocities.com/devthepper/translates.htm

At first I thought the program directly took the HTML results and just
threw them into the program's HTML pane, but it does not.

Would appreciate info on how you are able to do this, is it just
scraping, or something different, as I would really like to be able
work with the dictionary aspect of the Google Translator.
Thank you, and great work!

Oleksii Prudkyi

unread,
Jul 26, 2008, 4:08:02 PM7/26/08
to translate_...@googlegroups.com
Hello,

I am rechecked

current state of google dictionary from
http://translate.google.com/translate_dict?q=sabidur%C3%ADa&hl=en&langpair=es|en




same results returned by Translate.Net, i.e.




And yes, tool internally get html and then parse it
For implementation you can check
http://code.google.com/p/translateclient/source/browse/trunk/Translate.Net/source/TranslateLib/Google/GoogleDictionary.cs

function
void DoTranslate(string phrase...

here a three parts:
 - first process result from server, 
 - second extract translation from html, 
 - third extract "Related phrases" data  and store them like translations results (look like this part confuse you)
I am hope this info will useful for you

Best regards,
Oleksii Prudkyi

devthepper

unread,
Jul 26, 2008, 9:50:36 PM7/26/08
to Translate.Net support
Thank you so much, I'll be checking this out!

On Jul 26, 12:08 pm, Oleksii Prudkyi <oleksii.prud...@gmail.com>
wrote:
> Hello,
> I am rechecked
> current state of google dictionary fromhttp://translate.google.com/translate_dict?q=sabidur%C3%ADa&hl=en&langpair=es|ensame results returned by Translate.Net, i.e.
> And yes, tool internally get html and then parse it
> For implementation you can checkhttp://code.google.com/p/translateclient/source/browse/trunk/Translate.Net/source/TranslateLib/Google/GoogleDictionary.cs
> functionvoidDoTranslate(stringphrase... here a three parts:  - first process result from server, - second extract translation from html, - third extract "Related phrases" dataand store them like translations results (look like this part confuse you)I am hope this info will useful for you
> Best regards,
> Oleksii Prudkyi
> 26.07.2008 21:07, you wrote:Wondering how you get the results from Google's Dictionary, NOT the translator. Hey there, I have been looking into using Google's translating DICTIONARY aspect, but they only have the Translator API open, and am confused on how you were able to successfully work with the dictionary data. Here is an excerpt of what the code looks like from google after the Dictionary runs a search on the word "sabiduría". Google's:http://www.geocities.com/devthepper/googles.htmand here is your program's Translate.Net'shttp://www.geocities.com/devthepper/translates.htmAt first I thought the program directly took the HTML results and just threw them into the program's HTML pane, but it does not. Would appreciate info on how you are able to do this, is it just scraping, or something different, as I would really like to be able work with the dictionary aspect of the Google Translator. Thank you, and great work!
>
>  moz-screenshot-4.jpg
> 25KViewDownload
>
>  moz-screenshot-5.jpg
> 12KViewDownload
Reply all
Reply to author
Forward
0 new messages