#!/usr/bin/env node

// Output random images
var debug = require('debug')('sl_slideshow:imgur')
var shell = require('rdf-shell')

var file     = 'imgur.json'
var jsonPath = __dirname + '/../static/' + file
var json     = require(jsonPath)

debug('jsonPath', json.status)

for (var i = 0; i < json.data.length; i++) {
  var j = json.data[i]
  if (j.type === 'image/jpeg') {
    console.log(j.link)
  }
}
