correction in link matching
This commit is contained in:
parent
0a217f0544
commit
8c94dfd43f
2
fakenews
2
fakenews
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user