m 2 reaktor/random-emoji: html-decode output
using xmlstarlet
This commit is contained in:
parent
3ccdfe4011
commit
52200be3b3
|
@ -12,6 +12,7 @@ let
|
||||||
coreutils
|
coreutils
|
||||||
gnused
|
gnused
|
||||||
gnugrep
|
gnugrep
|
||||||
|
xmlstarlet
|
||||||
curl]);
|
curl]);
|
||||||
in {
|
in {
|
||||||
# TODO: make origin a variable, <- module is generic enough to handle different origins, not only stockholm
|
# TODO: make origin a variable, <- module is generic enough to handle different origins, not only stockholm
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
curl http://emojicons.com/random -s | \
|
curl http://emojicons.com/random -s | \
|
||||||
grep data-text | \
|
grep data-text | \
|
||||||
sed -n 's/.*>\(.*\)<\/textarea>/\1/p' | \
|
sed -n 's/.*>\(.*\)<\/textarea>/\1/p' | \
|
||||||
head -n 1
|
head -n 1 | \
|
||||||
|
xmlstarlet unesc
|
||||||
|
|
Loading…
Reference in a new issue