forked from shihaam/starlink_status
		
	hama beykaaru step eh
This commit is contained in:
		
							
								
								
									
										8
									
								
								bot.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								bot.sh
									
									
									
									
									
								
							| @@ -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 | ||||||
| ################################################################################# | ################################################################################# | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user