如何使用SkPy删除Skype中的所有联系人

2024-05-19 20:12:26 发布

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

我正试图删除黑客添加到我Skype帐户的所有联系人。有几百个。手工做这件事要花上几个小时甚至几天。我试着用skpyapi来做这个。你知道吗

我尝试用for循环遍历所有联系人,但遇到了一个错误。你知道吗

from skpy import Skype

skype = Skype("user", "pass", "token")

for user in skype.contacts:
    user.block(report=False)

尝试此操作时,出现以下错误:

Traceback (most recent call last):
  File "C:/Users/inkni/Documents/skype_contact_deleter.py", line 6, in <module>
    user.block(report=False)
  File "C:\Users\inkni\Miniconda3\Lib\site-packages\skpy\user.py", line 169, in block
    auth=SkypeConnection.Auth.SkypeToken, json={"report_abuse": report, "ui_version": "skype.com"})
  File "C:\Users\inkni\Miniconda3\Lib\site-packages\skpy\conn.py", line 218, in __call__
    raise SkypeAuthException("Auth rate limit exceeded", resp)
skpy.core.SkypeAuthException: ('Auth rate limit exceeded', <Response [429]>)

Tags: inpyreportauthforline联系人block