[英]What is the correct client name for WeChat
What to do if Python says "No module named 'wechat_client'"?如果 Python 提示“没有名为‘wechat_client’的模块”怎么办? If the client name for WeChat isn't correct, then what should be the correct name?如果微信的客户端名称不正确,那么正确的名称应该是什么? Thanks a lot.非常感谢。
>>> from pywxclient.core import Session, SyncClient
>>> s1 = Session()
>>> c1 = SyncClient(s1)
>>> c1.get_authorize_url() # Open the url in web browser
>>> c1.authorize() # Continue authorize when returning False
>>> c1.login()
>>> c1.sync_check()
>>> msgs = c1.sync_message() # Here are your wechat messages
>>> c1.flush_sync_key()
From Official Repo来自官方回购
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.