From 8745c4502b49c79c83ad22902dd7b1b3fa2e0156 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 21 Aug 2012 12:57:03 +0200 Subject: [PATCH] Tell people they need to install xmlstarlet explicitly --- fetch-tweets.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch-tweets.sh b/fetch-tweets.sh index b531ee6..4ccdcfb 100755 --- a/fetch-tweets.sh +++ b/fetch-tweets.sh @@ -21,7 +21,7 @@ then fi command -v xmlstarlet >/dev/null && xml() { xmlstarlet "$@"; } -type xml >/dev/null || exit +type xml >/dev/null || ( echo Please install http://xmlstar.sourceforge.net/; exit 1 ) twitter_total=$(curl -s "http://api.twitter.com/1/users/lookup.xml?screen_name=$1" | xml sel -t -m "//users/user/statuses_count" -v .) @@ -52,7 +52,6 @@ echo Trying to get $(($twitter_total - $saved)) temp=$(mktemp "$1.XXXX") temp2=$(mktemp "$1.XXXX") - url="${api}screen_name=${1}&count=200&page=${page}${since}&include_rts=true&trim_user=1&include_entities=1" echo "curl -s \"$url\""