2011-04-22 19:39:51 +04:00
|
|
|
# List movies from kids-in-mind.com
|
|
|
|
|
2011-05-11 13:42:18 +04:00
|
|
|
window.cbfunc = (data) ->
|
2011-05-29 16:21:25 +04:00
|
|
|
globaldata = data
|
|
|
|
list = data.query.results.movie
|
|
|
|
for item in list
|
|
|
|
console.log item.title + ' [' + item.rating.MPAA.content + ']'
|
|
|
|
phantom.exit()
|
2011-04-22 19:39:51 +04:00
|
|
|
|
|
|
|
el = document.createElement 'script'
|
|
|
|
el.src =
|
2011-05-11 13:42:18 +04:00
|
|
|
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20movies.kids-in-mind&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=window.cbfunc"
|
2011-04-22 19:39:51 +04:00
|
|
|
document.body.appendChild el
|