I am trying to download some .csv files from a website which offers no APIs and is restricted to browser. I have a fully functional .py file which does the job by launching an edge browser, selecting the right elements then downloading a zip file.
Now the problem is that I need to automate this task to run once everynight but due to graphical interfaces, the Windows Task Scheduler will not run the task unless the user is logged in.
I have tried SQL agent job as well. For both cases I have used .py script and .exe equivalent of it. No luck with SQL job at all, and with Win task scheduler, it only runs if user is logged in.
If you are not running it a Standard Windows account and not an Admin; the job will not run unless logged in. It's best practice to setup as a Windows admin. You can take a look at running it on a hosted VM or getting admin to set it up for you to run, just depending on your situation.