dimanche 27 décembre 2015

Get spoken Language from Yahoo

How can I get the spoken language of a country using YQL?

My approach was:

select lang from geo.countries where name ="Italy"

But I always get English as language:

{
 "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://ift.tt/1Zw5d0b"
   },
   "user-time": "103",
   "service-time": "70",
   "build-version": "0.2.369"
  },
  "results": {
   "place": {
    "lang": "en-US" // wrong language!
   }
  }
 }
}

Here you can play around with the YQL console: http://ift.tt/1PrFAuN




Aucun commentaire:

Enregistrer un commentaire