diff options
-rwxr-xr-x | httracker | 3 | ||||
-rw-r--r-- | lib/httracker/functions | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -8,8 +8,7 @@ source `dirname $0`/lib/httracker/functions || exit 1 # 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." diff --git a/lib/httracker/functions b/lib/httracker/functions index 7a66bc7..6e5c81b 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -100,6 +100,8 @@ function httracker_sqlquery { # 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 } |