From 0a217f05443843d303bef924fb6089ac9d228552 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 2 May 2020 09:09:12 +0200 Subject: [PATCH] fakenews: replace link text of jpgs with "PICTURE" --- fakenews | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fakenews b/fakenews index 90359b1..95b8b0d 100755 --- a/fakenews +++ b/fakenews @@ -17,10 +17,11 @@ while read account; do echo "Fetching $account..." echo "

$account

" >> $outfile 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:[^ ]*\)/ \1<\/a>/g' >> $outfile + tscrape | + head -n $numberOfTweets | + awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "
" $6 "
" $4 "
" $1 "
"}' | + sed 's/[ ]\(https:[^ ]*\)/ \1<\/a>/g' | + sed 's/>\(https:[^<]*.jpg\)/>PICTURE/g' >> $outfile echo "
" >> $outfile done < "$accountsfile"