May-08-2019, 12:30 PM
I have a scrapping python script and a batch file that when run from CMD works perfectly however when I try to run it from Task Scheduler nothing happens.
Don't know if this is relevant but script would open Firefox and scrape some websites.
Have tried adding full permissions to the folders and files that I am using. Also, have tried in Task Scheduler to set up "Run whatever user is logged on or not", "Run with highest privileges" , "Start in (optional): add/bactch/file/path" and so on
Batch file:
py "C:\python_test\myscript.py"
It should run the python script which opens Firefox and scrapes some websites, gets their links and saves them in a csv file
Batch file is in the folder where script is so C:\python_test\batch.bat... if I run this batch file from CMD or by double clicking on it it runs perfectly and executes the script successfully
Don't know if this is relevant but script would open Firefox and scrape some websites.
Have tried adding full permissions to the folders and files that I am using. Also, have tried in Task Scheduler to set up "Run whatever user is logged on or not", "Run with highest privileges" , "Start in (optional): add/bactch/file/path" and so on
Batch file:
py "C:\python_test\myscript.py"
It should run the python script which opens Firefox and scrapes some websites, gets their links and saves them in a csv file
Batch file is in the folder where script is so C:\python_test\batch.bat... if I run this batch file from CMD or by double clicking on it it runs perfectly and executes the script successfully