I'd like to write a simple python script for doing a specific job. I'm getting some time and link information from a web site.
times=
[
('17.04.2011', '06:41:44', 'abc.php?xxx'),
('17.04.2011', '07:21:31', 'abc.php?yyy'),
('17.04.2011', '07:33:04', 'abc.php?zzz'),
('17.04.2011', '07:41:23', 'abc.php?www'),]
What is the best way to click these links at the right time? Do I need to calculate the time interval between the current and the one in list and sleep for a while?
I'm really stuck at this point and open to any ideas which could be useful.
' in the Actions Tab. And give a suitable Name and Description of your task that you want to Automate and click on Next. Step 3: In the next step, you have to select at what time intervals your script should be executed. Select 'Daily' and click Next.
You can use perform(_:with:afterDelay:) to run a method after a certain number of seconds have passed, but if you want to run code at a specific time – say at exactly 4pm – then you should use Timer instead.
Go to your Dashboard and then to Files and then to the Upload a File button and upload the Python file you want to schedule for execution. Go to Tasks and set the time (in UTC) of the day that you want your script to be executed and type in the name of the Python file you uploaded (e.g., myscript.py).
Take a look at Python's sched module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With