How to disable or change the path of ghostdriver.log?

前端 未结 2 1549
死守一世寂寞
死守一世寂寞 2021-02-01 17:03

Question is straightfoward, but some context may help.

I\'m trying to deploy scrapy while using selenium and phantomjs as downloader. But the problem is that it keeps on

2条回答
  •  逝去的感伤
    2021-02-01 17:24

        #Reduce logging level
        driver = webdriver.PhantomJS(service_args=["--webdriver-loglevel=SEVERE"])
    
        #Remove logging
        import os
        driver = webdriver.PhantomJS(service_log_path=os.path.devnull)
    

提交回复
热议问题