1
如何使用YQL獲取國家的口語?從雅虎獲取口語語言
我的做法是:
select lang from geo.countries where name ="Italy"
但我總是得到英語作爲語言:
{
"query": {
"count": 1,
"created": "2015-12-27T23:43:58Z",
"lang": "en-US",
"diagnostics": {
"publiclyCallable": "true",
"url": {
"execution-start-time": "28",
"execution-stop-time": "98",
"execution-time": "70",
"content": "http://wws.geotech.yahooapis.com/v1/countries;start=0;count=1000"
},
"user-time": "103",
"service-time": "70",
"build-version": "0.2.369"
},
"results": {
"place": {
"lang": "en-US" // wrong language!
}
}
}
}
在這裏,你可以玩的YQL控制檯:https://developer.yahoo.com/yql/console/#h=select+lang+from+geo.countries+where+name+%3D%22Italy%22