m 2 reaktor/random-emoji: html-decode output

using xmlstarlet
This commit is contained in:
makefu 2015-10-22 13:43:20 +02:00
parent 3ccdfe4011
commit 52200be3b3
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,7 @@ let
coreutils
gnused
gnugrep
xmlstarlet
curl]);
in {
# TODO: make origin a variable, <- module is generic enough to handle different origins, not only stockholm

View file

@ -2,4 +2,5 @@
curl http://emojicons.com/random -s | \
grep data-text | \
sed -n 's/.*>\(.*\)<\/textarea>/\1/p' | \
head -n 1
head -n 1 | \
xmlstarlet unesc