如何修复?除非在SendRequest(等待60秒后重新发送)-Python InstagramAPI

2024-04-25 12:55:53 发布

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

我正在尝试创建一个基于Instagram AutoAcceper CLI的应用程序。当我运行我的代码,它的工作,直到2追随者被接受,并发生错误。你知道吗

我试过在不同的网络上运行它,检查它是否有速率限制,并试过在linux和windows上运行它。问题可能是如何处理登录会话。我还读到,我可能需要这里的私钥(PK)https://github.com/LevPasha/Instagram-API-python/issues/299,但我不确定这是否与我的问题相关,我也不确定如何将其合并到我的代码中

这是我的错误: 1

代码使用https://github.com/LevPasha/Instagram-API-python

https://pastebin.com/9Hyzq9Ae 我不知道是什么导致了错误,所以这里是完整的代码

    while __name__ == '__main__':
    try:
        userid = getPendingInfo(insta)
    except:
        pass
    if userid:
        for check in range(len(userid)):
            try:
                currentUserID = userid[check]
                approve(insta, currentUserID)
                number += 1
                spinner.start('\n SwiftAccept | Accepted: ' + str(number))
            except:
                pass

`

事实上,它应该接受没有任何中断。即使它是速率受限的,它也不会接受,而不是做它正在做的错误。另外,速率限制在10分钟内达到1000


Tags: 代码httpsgithubcomapi速率check错误