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"