Thread: python help plz
View Single Post
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#5
Originally Posted by Slocan View Post
If you don't want to use a subprocess to start wget, you can use the urllib2 module ( http://docs.python.org/library/ ) :
Code:
import urllib2
f = urllib2.urlopen('http://192.168.2.45/control/rcem?KEY_HOME')
data = f.read()
f.close()
this works faster, how can i build it into a button?