]> git.armaanb.net Git - bin.git/blob - tweet-grab
lots of minor changes
[bin.git] / tweet-grab
1 #!/usr/bin/env sh
2 # Grabs tweets and writes them to a file
3
4 FILE=/root/tweets/index.html
5 LOGFILE=/root/tweets/cron.log
6 > $FILE
7 curl https://nitter.net/keshinko | grep tweet-content | head -n 1 | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' >> $FILE
8 tail -n 1000 $LOGFILE > $LOGFILE
9 date -R >> $LOGFILE