[問題] Google translate

作者: poototo (poototo)   2013-12-09 01:16:30
用F12去看英翻中的get如下
http://translate.google.com/translate_a/t?
client=t&sl=en&tl=zh-TW&hl=zh-TW&sc=2
&ie=UTF-8&oe=UTF-8&oc=1&otf=2&ssel=0&tsel=0&q=book
想自己做個簡單翻譯widget,去抓response
但都是變成傳回一個檔案強迫下載
沒辦法去抓裡面的翻譯結果:
[[["書籍","books","Shūjí",""]],[["名詞",["書籍","圖書"],[["書籍",["books","literature","works"],,0.212912291],["圖書",["books"],,0.168427482]],"books",1]],"en",,[["書籍",[4],0,0,890,0,1,0]],[["books",4,[["書籍",890,0,0],["圖書",109,0,0],["書",0,0,0],["的書籍",0,0,0],["叢書",0,0,0]],[[0,5]],"books"]],,[,"book",[10],,1],[],2]
是否有什麼方法?
我網頁是要發佈在GoogleDrive
因為Google跟Bing的API都要錢,想這樣避開看看
Thx
1208
作者: danny8376 (釣到一隻猴子@_@)   2013-02-09 02:58:00
你用AJAX抓就沒影響了 不過...應該無法CROSS DOMAIN才是

Links booklink

Contact Us: admin [ a t ] ucptt.com