Thread: python help plz
View Single Post
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#11
Originally Posted by bonkel View Post
any idea to replate all ip's with only one?

like:

IP = 192.168.2.45

urllib2.urlopen('http://IP/control/rcem?KEY_HOME')
Is this what you mean?



IP = '192.168.2.45'

urllib2.urlopen('http://' + IP + '/control/rcem?KEY_HOME')
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 

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