Thread: python help plz
View Single Post
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#4
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()
 

The Following User Says Thank You to Slocan For This Useful Post: