Right now I have some scripts I want to run automatically and periodically, say, every two days.
The way I've structured looks something like this.
Script1:
def example1():
#Some Selenium code
example1()
Script2:
def example2():
#Some more Selenium code
example2()
Script3:
import Script1
import Script2
As you'll notice, 'Script1' and 'Script2' already call their main function, so in 'Script3' I only need to import the scripts, and not call the functions (although this works for me, I'm not sure whether this is a safe approach/good practice).
My question: if I use schedule to run 'Script3' every x days, will this mean the script will run forever, or does it run once every x days and then goes into sleep mode until it has to run again? Also, for it to run it would requiere the PC to be always on, right?
If so, is there any way to make it run automatically and periodically even with the PC turned off?
Thanks in advance!