Created
April 22, 2014 23:15
-
-
Save jedahan/11197645 to your computer and use it in GitHub Desktop.
post with casper!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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