Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save blizzarddreams/8338dbc1d5d9e5f9fc8e to your computer and use it in GitHub Desktop.

Select an option

Save blizzarddreams/8338dbc1d5d9e5f9fc8e to your computer and use it in GitHub Desktop.
import urllib.request
import os
import time
try:
os.mkdir('radar')
except WindowsError:
print("ok.")
while True:
URL = "http://www.arso.gov.si/vreme/napovedi%20in%20podatki/radar_anim.gif"
urllib.request.urlretrieve(URL, "radar/radar_anim_"+str(int(time.time()))+".gif")
time.sleep(3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment