python - InstaPy 在 MacOs 11 上使用 Python3 失败
问题描述
我尝试使用 Python3 设置一个 instaPy 机器人,但出现错误我只运行快速入门示例
InstaPy Version: 0.6.13
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/Users/*****/InstaPy"
Traceback (most recent call last):
File "/Users/*****/Perso/botinsta/instapy-quickstart-master/run/../quickstart.py", line 15, in <module>
session = InstaPy(username=insta_username,
File "/Users/*****/Library/Python/3.9/lib/python/site-packages/instapy/instapy.py", line 325, in __init__
self.browser, err_msg = set_selenium_local_session(
File "/Users/*****/Library/Python/3.9/lib/python/site-packages/instapy/browser.py", line 123, in set_selenium_local_session
browser = webdriver.Firefox(
File "/Users/*****n/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
self.service.start()
File "/Users/*****/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/common/service.py", line 104, in start
raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /usr/local/bin/geckodriver
[Opération terminée]
解决方案
推荐阅读
- html - 如何在 html/css 中的两个内容之间添加水平线?
- android - 如何读写 ISO 15693 附近的徽章?
- maven - Maven:org.seleniumhq.selenium:selenium-java:3.141.59 路径问题
- c# - 有什么方法可以在不使用 Ado.net 的情况下将 MVC 项目与 Sql server 连接起来?
- python - 绘制日期时间事件
- python - 从给定标签读取 xml 文件 pandas
- javascript - 打字稿 - 使用日期时无法更新对象数组
- python - 无法在 Spyder 上使用 Astropy
- javascript - 如何通过使用 laravel 解析将使用 api 获取的 json 文件转换为 javascript 对象?
- node.js - Messagebird SMS 身份验证/OTP 用于具有节点 js 和颤振的移动应用程序