我正试图删除黑客添加到我的Skype帐户中的所有联系人。有数百个。用手做会花费数小时甚至数天。我正在尝试使用SkPy API来做到这一点。
我尝试使用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]>)