Skip to content

Instantly share code, notes, and snippets.

@scottleedavis
Created October 26, 2019 04:08
Show Gist options
  • Save scottleedavis/49c0e4afb709fecdcef84e6873b355d6 to your computer and use it in GitHub Desktop.
Save scottleedavis/49c0e4afb709fecdcef84e6873b355d6 to your computer and use it in GitHub Desktop.
runs an openfaas function imagecrawler and feeds the results to the function exif
echo https://lotussoulstudios.com | faas-cli invoke openfaas-imagecrawler | jq .. > urls.txt
input="./urls.txt"
while IFS= read -r line
do
line="${line%\"}"
line="${line#\"}"
echo $line | faas-cli invoke openfaas-exif | jq
done < $input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment