Possible to use raw_input() function with iMessage?

Posted on
Sun Nov 24, 2019 9:48 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Possible to use raw_input() function with iMessage?

I'd like to do the following:

1) Have python script run to launch and manipulate a web page in chrome
2) Have the python script ask me for input at some point in the execution by sending me an iMessage (Example: "What is the city you're in?")
3) Have the script use my iMessage response as the input to continue the execution (Example: "Baltimore, MD")

I have this working using the raw_input() function in Python 2.7 but would prefer to use iMessage so I don't have to physically be in front of my console when it runs.

If it helps, here's how I'm using raw_input():
Code: Select all
code = raw_input("What is the secret password: ")
rsa_box = driver.find_element_by_id("input_secret")
rsa_box.send_keys(code)
submit_ = driver.find_element_by_id("btn_verify")
submit_.click()
time.sleep(10)
submit_ = driver.find_element_by_id("btn_remember_device_continue")
submit_.click()
time.sleep(20)

Posted on
Mon Nov 25, 2019 12:59 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Possible to use raw_input() function with iMessage?

I don't have a proposed solution since this is a rather complex integration, but have you taken a look at this plugin?

Image

Posted on
Mon Nov 25, 2019 1:26 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Possible to use raw_input() function with iMessage?

Thanks Matt. I do use that plugin and it also looks like scripting is supported.

I'll give it a shot and report back.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests