Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created Apr 22, 2014
Embed
What would you like to do?
post with casper!
# grab some random artwork metadata from scrapi
artwork=`curl scrapi.org/random?images=true`
# filter out the title
title=`echo $artwork | jq '.title'`
# filter out the description
description=`echo $artwork | jq '.description'`
# run the script with variables
echo casper myscript.coffee --title=$title --description=$description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment