Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created April 22, 2014 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedahan/11197645 to your computer and use it in GitHub Desktop.
Save jedahan/11197645 to your computer and use it in GitHub Desktop.
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