Sha256: ba0ffebd4fa0e624bc6f516a3e18c00e95c0ca5f851754ea39714083f3d295f7

Contents?: true

Size: 469 Bytes

Versions: 21

Compression:

Stored size: 469 Bytes

Contents

# List movies from kids-in-mind.com

window.cbfunc = (data) ->
  globaldata = data
  list = data.query.results.movie
  for item in list
    console.log item.title + ' [' + item.rating.MPAA.content + ']'
  phantom.exit()

el = document.createElement 'script'
el.src =
"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"
document.body.appendChild el

Version data entries

21 entries across 19 versions & 3 rubygems

Version Path
phantomjs.rb-0.0.1 vendor/phantomjs-1.4.1_OSX/examples/movies.coffee