0

我在互联网上找到了一些可能的答案,但似乎都没有。有谁知道出了什么问题?

编码:

""" 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

4

1 回答 1

1

我 brew 安装了 firefox 然后它工作了

于 2020-09-09T07:18:40.710 回答