开发者

How to do google webpage translate in a Java class

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开发者_如何学C 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?


You can use HttpClient to perform you http requests.


You can use this api google-api-translate

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜