How to do google webpage translate in a Java class
Posted
by Robert
on Stack Overflow
See other posts from Stack Overflow
or by Robert
Published on 2010-03-17T22:32:51Z
Indexed on
2010/03/18
2:01 UTC
Read the original article
Hit count: 365
Hi,this is a follow-up question of mine. Suppose now I have a URL :
http://www.baidu.com/s?bs=%B0%C2%B0%CD%C2%ED&f=8&wd=%B0%C2%B0%CD%C2%ED
and it work perfectly by inputting it in the text field of google translate and select from "Chinese" to English.
My question is ,suppose now I want to achieve this in Java, I would like to adopt "Process q=Runtime.getRuntime().exec( "cmd /c start +URL" approach to do this. Could I achieve that by simply concatenating the Google translate URL and the webpage URL? If yes,could you please elaborte,thanks.
© Stack Overflow or respective owner