feat: update arts
This commit is contained in:
parent
7517990273
commit
a32954e841
4549
utils/arts.txt
4549
utils/arts.txt
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,13 @@
|
|||||||
touch filtered_arts.txt
|
touch filtered_arts.txt
|
||||||
while IFS= read -r line
|
while IFS= read -r line
|
||||||
do
|
do
|
||||||
|
if [[ $line == *"twitter.com"* ]]; then
|
||||||
header=$(curl -o save -w "%{header_json}" "$line" 2> /dev/null)
|
header=$(curl -o save -w "%{header_json}" "$line" 2> /dev/null)
|
||||||
echo $header | jq -e '.location[]' >/dev/null
|
echo $header | jq -e '.location[]' >/dev/null
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "$line" >> filtered_arts.txt
|
echo "$line" >> filtered_arts.txt
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "$line" >> filtered_arts.txt
|
||||||
|
fi
|
||||||
done < $1
|
done < $1
|
Loading…
Reference in New Issue
Block a user