Skip to content

Instantly share code, notes, and snippets.

@xanderio
Created November 11, 2015 20:44
Show Gist options
  • Save xanderio/97b8850eb9de230eb2cf to your computer and use it in GitHub Desktop.
Save xanderio/97b8850eb9de230eb2cf to your computer and use it in GitHub Desktop.
import urllib2
while True:
opener = urllib2.build_opener(urllib2.HTTPHandler)
request = urllib2.Request('http://tim-fischer.ddns.net/send443/index.php/?group=11001&switch=01&action=0&delay=0')
url = opener.open(request)
request = urllib2.Request('http://tim-fischer.ddns.net/send443/index.php/?group=11001&switch=01&action=1&delay=0')
url = opener.open(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment