vendredi 28 octobre 2016

web scrapping in python 3.5 mac os

im trying to perform jsDriver = webdriver.PhantomJS() i have installed everything im using mac os python 3.5 and it still gives me this error Traceback (most recent call last): File "", line 1, in jsDriver = webdriver.PhantomJS('phantomjs') File "//anaconda/lib/python3.5/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 51, in init log_path=service_log_path) File "//anaconda/lib/python3.5/site-packages/selenium/webdriver/phantomjs/service.py", line 50, in init service.Service.init(self, executable_path, port=port, log_file=open(log_path, 'w')) PermissionError: [Errno 13] Permission denied: 'ghostdriver.log'Traceback (most recent call last): File "", line 1, in jsDriver = webdriver.PhantomJS('phantomjs') File "//anaconda/lib/python3.5/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 51, in init log_path=service_log_path) File "//anaconda/lib/python3.5/site-packages/selenium/webdriver/phantomjs/service.py", line 50, in init service.Service.init(self, executable_path, port=port, log_file=open(log_path, 'w')) PermissionError: [Errno 13] Permission denied: 'ghostdriver.log'




Aucun commentaire:

Enregistrer un commentaire