From: Armaan Bhojwani Date: Sat, 20 Mar 2021 17:58:03 +0000 (-0400) Subject: tweet-grab: cleanup X-Git-Tag: v0.0.1~17 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=ec9421f56560129128d750f66b234abd513122c4 tweet-grab: cleanup --- 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