Browse Source

gattoaggiunta

encrypt 3 years ago
parent
commit
2b9e428e62
1 changed files with 6 additions and 0 deletions
  1. 6 0
      inpurrection/inpurrection.sh

+ 6 - 0
inpurrection/inpurrection.sh

@@ -0,0 +1,6 @@
+#!/bin/sh
+image=$(curl --silent -L "http://fluffy-kittens.tumblr.com/random" | grep "og:image" | sed "s/\/>/\/>\n/g" | grep "og:image" | rev | cut -d '"' -f 2 | rev | head -n 1)
+echo $image
+wget --quiet "$image"
+toot -i="$(basename $image)" "#inPURRection #gattini #kittens"
+rm $(basename $image)