Somebody who can convert to Python3 in their sleep...

Posted on
Tue Jun 14, 2022 11:54 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Somebody who can convert to Python3 in their sleep...

import urllib

myURL_hot = str("http://user:password@192.168.1.166/relay_en.cgi?relayon2=on")
myURL_cold = str("http://user:password@192.168.1.166/relay_en.cgi?relayon4=on")

urllib.urlopen(myURL_hot)
urllib.urlopen(myURL_cold)




Thank you in advance!

Posted on
Tue Jun 14, 2022 12:53 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Somebody who can convert to Python3 in their sleep...

Code: Select all
import requests



requests.get(myURL_hot)



import requests



requests.get(myURL_hot)

Sent from my iPhone using Tapatalk Pro
Last edited by howartp on Tue Jun 14, 2022 12:55 pm, edited 1 time in total.

Posted on
Tue Jun 14, 2022 12:55 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Somebody who can convert to Python3 in their sleep...

(Sorry, Tapatalk is ignoring the code tags and wrapping the lines!)


Sent from my iPhone using Tapatalk Pro

Posted on
Tue Jun 14, 2022 1:52 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Somebody who can convert to Python3 in their sleep...

Yeah, Tapatalk doesn't do CODE tags. I have to switch to Safari to read those posts.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jun 14, 2022 5:57 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Somebody who can convert to Python3 in their sleep...

You guys are the greatest!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron