correction in link matching

This commit is contained in:
gutmet 2020-05-02 09:13:22 +02:00
parent 0a217f0544
commit 8c94dfd43f

View File

@ -20,7 +20,7 @@ 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' |
sed 's/\([^"]\)\(https:[^ ]*\)/\1<a href="\2">\2<\/a>/g' |
sed 's/>\(https:[^<]*.jpg\)/>PICTURE/g' >> $outfile
echo "</dl>" >> $outfile
done < "$accountsfile"