Skip to content

Instantly share code, notes, and snippets.

@dakk
Created October 1, 2016 10:56
Show Gist options
  • Save dakk/83160fcae829b0cf21a086cde2937248 to your computer and use it in GitHub Desktop.
Save dakk/83160fcae829b0cf21a086cde2937248 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
import urllib2 as ul2
import time
while True:
ip = ul2.urlopen('http://ipecho.net/plain').read()
f = open('/home/dak/Dropbox/ip.txt','w')
f.write(ip)
f.close()
time.sleep (60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment