# Get URLs from feed
# Thanks http://stackoverflow.com/questions/443991/how-to-parse-rss-feeds-xml-in-a-shell-script
-curl -s "$FEED" | grep -o '<link>[^<]*' | grep -o "[^>]*$" \
- | `dirname $0`/lib/httracker/html.sed > $URLS
+curl -s "$FEED" | grep -o '<link>[^<]*' | grep -o "[^>]*$" > $URLS
if [ "$?" != "0" ]; then
echo "Error downloading feed $FEED, aborting."
# Iterate over all URLs
function httracker_iterate {
for link in `cat $URLS | xargs`; do
+ # Fix entities
+ link="`echo $link | `dirname $0`/lib/httracker/html.sed`"
httracker_get "$link"
done
}