fakenews: linebreak before timestamp

This commit is contained in:
gutmet 2020-04-22 07:10:01 +02:00
parent c92e00f3cb
commit 8668bbb375

View File

@ -19,7 +19,7 @@ while read account; do
curl -H 'User-Agent:' -s "https://twitter.com/$account" | curl -H 'User-Agent:' -s "https://twitter.com/$account" |
tscrape | tscrape |
head -n $numberOfTweets | head -n $numberOfTweets |
awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "<dt>" $6 "</dt><dd>" $4 " <small>" $1 "</small></dd>"}' | awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "<dt>" $6 "</dt><dd>" $4 " <br><small>" $1 "</small></dd>"}' |
sed 's/https:[^ ]*/<a href="&">&<\/a>/g' >> $outfile sed 's/https:[^ ]*/<a href="&">&<\/a>/g' >> $outfile
echo "</dl>" >> $outfile echo "</dl>" >> $outfile
done < "$accountsfile" done < "$accountsfile"