hama beykaaru step eh

This commit is contained in:
Shihaam Abdul Rahman 2023-11-12 20:34:56 +05:00
parent 06792242e6
commit 373ba94277
Signed by untrusted user: shihaam
GPG Key ID: 6DA2E87EBC227636

8
bot.sh
View File

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