-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lack of time.sleep(1) #971
Comments
useful |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
您好,我已收到您的邮件,会尽快回复!
|
async版
|
LOCATION=$(pip3 show itchat | grep Location | cut -d ' ' -f 2)
sed -i '/isLoggedIn = False/ a\ time.sleep(15)' $LOCATION/itchat/components/login.py
sed -i '/isLoggedIn = False/ a\ asyncio.sleep(15)' $LOCATION/itchat/async_components/login.py
sed -i '/if isLoggedIn:/ i\ time.sleep(1)' $LOCATION/itchat/components/login.py
sed -i '/if isLoggedIn:/ i\ asyncio.sleep(1)' $LOCATION/itchat/async_components/login.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在提交前,请确保您已经检查了以下内容!
itchat
登陆itchat
, 而不是其他项目.请使用
itchat.run(debug=True)
运行,并将输出粘贴在下面:您的itchat版本为:
[在这里填写版本号]
。(可通过python -c "import itchat;print(itchat.__version__)"
获取)其他的内容或者问题更详细的描述都可以添加在下面:
这里 while 循环体 没有 time.sleep(1) 导致 请求 太频繁被微信拦截。
The text was updated successfully, but these errors were encountered: