From 799212caa04413d211ed8664c8f7930a9839d27c Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 2 May 2020 09:03:20 +0200 Subject: [PATCH] fakenews: link to post, less annoying link color --- fakenews | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fakenews b/fakenews index 8b538c3..90359b1 100755 --- a/fakenews +++ b/fakenews @@ -11,7 +11,7 @@ accountsfile=".fakenews" outfile="/tmp/fakenews_out.html" numberOfTweets=5 -echo 'News' > $outfile +echo 'News' > $outfile while read account; do echo "Fetching $account..." @@ -19,8 +19,8 @@ while read account; do curl -H 'User-Agent:' -s "https://twitter.com/$account" | tscrape | head -n $numberOfTweets | - awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "
" $6 "
" $4 "
" $1 "
"}' | - sed 's/https:[^ ]*/&<\/a>/g' >> $outfile + awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "
" $6 "
" $4 "
" $1 "
"}' | + sed 's/[ ]\(https:[^ ]*\)/ \1<\/a>/g' >> $outfile echo "" >> $outfile done < "$accountsfile"