aboutsummaryrefslogtreecommitdiff
path: root/httracker
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-25 17:29:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-25 17:29:30 -0300
commit17ee57521738b578905d2297490af030d8ee5730 (patch)
tree2b51f35beb2393de22d0d9cc9bc1b871174927e6 /httracker
parent720d0f108bff5aa3c2d6bfe16a3494473c6d250d (diff)
downloadhttruta-17ee57521738b578905d2297490af030d8ee5730.tar.gz
httruta-17ee57521738b578905d2297490af030d8ee5730.tar.bz2
Misc fixes
Diffstat (limited to 'httracker')
-rwxr-xr-xhttracker4
1 files changed, 2 insertions, 2 deletions
diff --git a/httracker b/httracker
index 42ae9af..982d395 100755
--- a/httracker
+++ b/httracker
@@ -5,7 +5,7 @@
# Configuration
MIRRORS="/var/cache/sites/arquivo/conteudo/links.sarava.org/assets"
-FEED="https://links.sarava.org/rss?sort=date_desc&count=50"
+FEED="https://links.sarava.org/rss?sort=date_desc&count=100"
TMP="/tmp/httracker"
URLS="$TMP/urls.txt"
LEVEL="1"
@@ -54,7 +54,7 @@ mkdir -p $MIRRORS $TMP
# Get URL
# Thanks http://stackoverflow.com/questions/443991/how-to-parse-rss-feeds-xml-in-a-shell-script
-curl -s $FEED | grep -o '<link>[^<]*' | grep -o "[^>]*$" > $URLS
+curl -s "$FEED" | grep -o '<link>[^<]*' | grep -o "[^>]*$" > $URLS
if [ "$?" != "0" ]; then
echo "Error downloading feed $FEED, aborting."