gpt4 book ai didi

python - 最新版本的 yowsup 的文档在哪里?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:47:19 26 4
gpt4 key购买 nike

Yowsup 是一个 Whatsapp API。我已经在我的电脑上安装了它,但我找不到在其中注册我的手机的命令。我试过用谷歌搜索它,但我发现的所有命令都是针对旧版本的 Yowsup,现在已经更改了。任何解释相同内容的教程或文档将不胜感激。

我尝试了下面答案中提到的命令,但出现以下错误:

Traceback (most recent call last):
File "/usr/local/bin/yowsup-cli", line 4, in <module>
__import__('pkg_resources').run_script('yowsup2==2.4.48', 'yowsup-cli')
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 735, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1659, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 323, in <module>

File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 158, in process

File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 176, in handleRequestCode

File "build/bdist.linux-x86_64/egg/yowsup/registration/coderequest.py", line 46, in send
File "build/bdist.linux-x86_64/egg/yowsup/common/http/warequest.py", line 73, in send
File "build/bdist.linux-x86_64/egg/yowsup/common/http/warequest.py", line 111, in sendGetRequest
File "build/bdist.linux-x86_64/egg/yowsup/common/http/warequest.py", line 167, in sendRequest
File "/usr/lib/python2.7/httplib.py", line 1052, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1092, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1048, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 854, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1273, in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line 352, in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line 579, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)

有什么解决办法吗?

最佳答案

现在密码 (PW) 被替换为 client_static_keypair。从 CLI 复制它并粘贴到您的配置文件,而不是使用 key "client_static_keypair" 的密码。

异常文本帮助我找到了它:“在 Config 中设置密码已被弃用,不再使用。改为使用 client_static_keypair”

关于python - 最新版本的 yowsup 的文档在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35692568/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com