selenium.common.exceptions.SessionNotCreatedException:消息:找不到匹配的功能集

2024-10-02 18:17:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我在网上找到了一些可能的答案,但似乎没有一个有效。有人知道出了什么问题吗

守则:

""" 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、Python3.7&;instapy 0.6.10


Tags: runfromtestimporttruesmartsessionusername