Receive data from GET request
Hello.
Is it possible for Sikuli to do the following:
1. Sikuli script makes a request to page: http://
2. get.php sends us back GET request:
vr=50-100
the GET request result is always different
3. When sikuli takes each variable from the received request and uses it, substituting the values. When I use it in the following code:
...
if now.hour >= 0 and now.hour < 1: # 00:00 - 01:00
# send request to http://
# If from http://
mytime = random.randint (50, 100) # received from the GET request - vr
if now.hour >= 1 and now.hour < 2: # 01:00 - 02:00
# send request to http://
# If from http://
mytime = random.randint (100, 150) # received from the GET request - vr
if now.hour >= 2 and now.hour < 3: # 02:00 - 03:00
# send request to http://
# If from http://
mytime = random.randint (200, 300) # received from the GET request - vr
wait (mytime)
...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- fordox
- Solved:
- Last query:
- Last reply: