From ec9421f56560129128d750f66b234abd513122c4 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 20 Mar 2021 13:58:03 -0400 Subject: [PATCH] tweet-grab: cleanup --- tweet-grab | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tweet-grab b/tweet-grab index e6770a4..b6e7fc0 100755 --- a/tweet-grab +++ b/tweet-grab @@ -6,8 +6,8 @@ FILE=/root/tweets/index.html LOGFILE=/root/tweets/cron.log +INSTANCE=https://nitter.fdn.fr -> $FILE -curl https://nitter.net/keshinko | grep tweet-content | head -n 1 | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' >> $FILE -tail -n 1000 $LOGFILE > $LOGFILE -date -R >> $LOGFILE +curl $INSTANCE/keshinko | grep tweet-content | head -n 1 \ + | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' > $FILE +date -R > $LOGFILE -- 2.39.2