newmethod
This commit is contained in:
1
attuale.txt
Normal file
1
attuale.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
streamingcommunity.ooo
|
||||||
@@ -1 +1,4 @@
|
|||||||
giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*') ; echo -e "\n$giusto\n"
|
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"
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*')
|
attuale=$(<attuale.txt)
|
||||||
|
|
||||||
formatted="${giusto#/*}"
|
nuovo=$(curl -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?')
|
||||||
formatted="${formatted%/}"
|
|
||||||
|
if [ "$attuale" != "$nuovo" ]; then
|
||||||
|
attuale="$nuovo"
|
||||||
|
echo "$attuale" > attuale.txt
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
formatted="https.//$(<attuale.txt)"
|
||||||
|
|
||||||
cat <<- _EOF > /var/www/html/scommunity/index.html
|
cat <<- _EOF > /var/www/html/scommunity/index.html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
Reference in New Issue
Block a user