up
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
attuale=$(<attuale.txt)
|
||||
nuovo=$(curl -L $attuale | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*')
|
||||
echo "$nuovo" > attuale.txt
|
||||
echo -e "\n$nuovo\n"
|
||||
#!/bin/bash
|
||||
|
||||
attuale=$(<$PWD/attuale.txt)
|
||||
nuovo=$(curl --no-progress-meter -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?')
|
||||
if [ "$attuale" != "$nuovo" ]; then
|
||||
attuale="$nuovo"
|
||||
echo "$attuale" > $PWD/attuale.txt
|
||||
fi
|
||||
echo -e "\n $attuale\n"
|
||||
|
||||
Reference in New Issue
Block a user