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

10
bot.sh
View File

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