Created
October 1, 2016 10:56
-
-
Save dakk/83160fcae829b0cf21a086cde2937248 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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