【发布时间】:2020-09-03 11:59:22
【问题描述】:
我在互联网上找到了一些可能的答案,但似乎都没有。有谁知道出了什么问题?
代码:
""" Quickstart script for InstaPy usage """
# imports
from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace
username='test'
password='test'
excluders = ["friend1", "friend2", "friend3"]
# get an InstaPy session!
session = InstaPy(username=username,
password=password,
headless_browser=True,
geckodriver_path='/usr/local/Cellar/geckodriver/0.27.0/bin/geckodriver')
with smart_run(session):
session.set_dont_include(excluders)
session.set_do_follow(enabled=True, times=1)
session.follow_user_followers(['account1', 'account2', 'account3'], amount=10, randomize=False, sleep_delay=60)
错误信息
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
我正在使用 mac、Python 3.7 和 instapy 0.6.10
【问题讨论】:
-
geckodriver_path='/usr/local/Cellar/geckodriver/0.27.0/bin/geckodriver 添加.exe 我认为这是造成它的原因。
-
是的,我认为这也可能是问题所在,但没有帮助。我通过brew安装了firefox,然后就可以了
标签: python selenium selenium-webdriver instapy