I'm trying to make my script only run the functions when the time is between 9 AM until 6 PM, this is what I've done so far:
In the image it works only before the time hits 6 PM but I do not know how I would check if it is after 9 AM and have these two work togheter.
Try printing ( with log) the command you are trying to execute, run it in a seperate command line to see if it's working properly.
since it's related to input I am suspecting the problem is with the youtube url you are providing
I think you could use another thread with the browser to accomplish this. And saving the necessary data to a resource / global variable, then using this data in the new thread, whether with the browser or whatever needs to be done.