fakenews: replace link text of jpgs with "PICTURE"
This commit is contained in:
parent
799212caa0
commit
0a217f0544
3
fakenews
3
fakenews
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user