hama beykaaru step eh

This commit is contained in:
Shihaam Abdul Rahman 2023-11-12 20:26:23 +05:00
parent 3e536ddbd6
commit 06792242e6
Signed by untrusted user: shihaam
GPG Key ID: 6DA2E87EBC227636

3
bot.sh
View File

@ -23,8 +23,7 @@ echo Camera Image grabbed
################################################################################# #################################################################################
echo Grabbing Satellite Image echo Grabbing Satellite Image
# scrap html and get image link # scrap html and get image link
satellite_image_url=$(curl "https://www.meteorology.gov.mv/?pd=satellite" -s | \ satellite_image_url=$(curl "https://www.meteorology.gov.mv/" -s | \
grep "https://mobile.codeworks.mv/uploads/Satellite/"| \
grep -o 'https://mobile.codeworks.mv/uploads/Satellite/[^"]*' | \ grep -o 'https://mobile.codeworks.mv/uploads/Satellite/[^"]*' | \
tail -n 1) tail -n 1)
# Download the Setellite Image # Download the Setellite Image