run selenium with crontab (python)

前端 未结 4 914
小蘑菇
小蘑菇 2020-12-09 19:19

I have a python script that calls chrome via selenium with the next line.

 ff = webdriver.Chrome(\'/home/user01/webScraping/CollectAndGo/chromedriver\')
         


        
4条回答
  •  一整个雨季
    2020-12-09 20:20

    on MacOS Catalina only this command worked for me

    * * * * * export DISPLAY=:0 && export PATH=$PATH:/usr/local/bin && /usr/bin/python3 ~/Documents/Scripts/my_script.py
    

提交回复
热议问题