Как я могу получить разговорный язык в стране с использованием YQL?Получить разговорный язык от Yahoo
Мой подход был:
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