fakenews: replace link text of jpgs with "PICTURE"

This commit is contained in:
gutmet 2020-05-02 09:09:12 +02:00
parent 799212caa0
commit 0a217f0544

View File

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