错误 geckodriver.exe:
Exception has occurred: PermissionError [Errno 13] Permission denied: 'C:\\Users\\***\\InstaPy\\assets\\geckodriver.exe' File "C:\Users\***\instapy-quickstart-master\quickstart.py", line 15, in <module> session = InstaPy(username=insta_username,password=insta_password,headless_browser=True,multi_logs=True)
解决:
打开任务管理器,结束 geckodriver.exe 运行
—
错误 extension.xpi:
Traceback (most recent call last): File "start.py", line 150, in multi_logs=True) File "C:\Users\X\AppData\Roaming\Python\Python37\site-packages\instapy\instapy.py", line 330, in init self.logger, File "C:\Users\X\AppData\Roaming\Python\Python37\site-packages\instapy\browser.py", line 132, in set_selenium_local_session browser.install_addon(create_firefox_extension(), temporary=True) File "C:\Users\X\AppData\Roaming\Python\Python37\site-packages\instapy\browser.py", line 49, in create_firefox_extension with zipfile.ZipFile(zip_file, "w", zipfile.ZIP_DEFLATED, False) as zipf: File "C:\Users\X\AppData\Local\Continuum\anaconda3\envs\instagram\lib\zipfile.py", line 1204, in init self.fp = io.open(file, filemode) OSError: [Errno 22] Invalid argument: 'C:\Users\X\InstaPy\assets\extension.xpi'
解决:
删除指定目录下的 extension.xpi 文件