fakenews: replace link text of jpgs with "PICTURE"
This commit is contained in:
parent
799212caa0
commit
0a217f0544
9
fakenews
9
fakenews
|
@ -17,10 +17,11 @@ while read account; do
|
|||
echo "Fetching $account..."
|
||||
echo "<h3>$account</h3><dl>" >> $outfile
|
||||
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 "<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
|
||||
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:[^<]*.jpg\)/>PICTURE/g' >> $outfile
|
||||
echo "</dl>" >> $outfile
|
||||
done < "$accountsfile"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user