veikai / pywechatspy Goto Github PK
View Code? Open in Web Editor NEWA spy program that helps people make better use of WeChat
License: Apache License 2.0
A spy program that helps people make better use of WeChat
License: Apache License 2.0
使用 pip install google 不能解决,不是很清楚这个包的作用,如果是从Google官网下载 ‘protocolbuffers/protobuf‘ 则会缺失‘google.protobuf.descriptor’
我在Anaconda下想要安装PyWeChatSpy,但是一直安装不上,python=3.8。请问大家是如何安装的呢?谢谢
这个功能是不是需要付费?请求发出去,返回结果为空。
请问这个怎么解决,死循环在这里了
能介绍一下如何购买,以及免费的和商业版有什么区别吗
微信版本用的也是推荐的3.0.0.57,请问会是什么原因呢?
实例里面只有监听消息然后回复的,有没有直接搜索联系人主动发送消息的实例代码。
你好,请问怎么收费
xmlStr = data["content"]
doc = etree.XML(xmlStr)
from_wxid = doc.xpath("//msg/@fromusername")[0]
source_wxid = doc.xpath("//msg/@sourceusername")[0]
ticket = doc.xpath("//msg/@ticket")[0]
encryptusername = doc.xpath("//msg/@encryptusername")[0]
#print("from_wxid = " + from_wxid + " source_wxid = " + source_wxid + " ticket= " + ticket + " encryptusername =" +encryptusername)
spy.accept_new_contact(encryptusername, ticket)
跑起来的联系下我wx:YY5267Q
找你定制过, 想升级微信版本, 或者把源码卖我
更新到微信3.1.0.72
請問怎麼找發消息call
照網路上的思路,沒又看到相似位置的代碼
关于群历史消息查询, 有没有接口或方法实现?? 可集成群管理功能
data["type"]==1怎么才会触发,
我使用了spy.query_login_info(),他就一直循环输出我的信息,怎么才可以暂停
send_text接口 @群里某人时 只有第一次有@的效果,第二次调用接口就无效了。重开程序后第一次再次有效果,只有继续没效果了。
试了试这个函数返回的是NoneType,但是在spy.py的第108行:
socket_client.send(data_length_bytes + data)
将查询到的信息直接输出了,但不清楚该怎么调用。
请问有没有办法让查询到的信息成为一个字典或者列表方便后续调用?
使用的是你提供的微信版本 2.8.0,已关闭自动更新
未能保存日志文件。
提示 WeChatSpy.dll 错误
未上报,微信是否真的不上报,上报了,是不是大概率被封号?
错误: [MainThread] ERROR: Professional Key Error
在笔记本win10家庭版上是正常使用。在服务器上配置运行example.py后微信正常登录,但是终端不能打印出消息。
操作系统: Windows Server 2019 数据中心版 64位 中文版 跟2016版本
厂商:腾讯云
github下载了今天的代码和教程链接里的微信3.0.0.57。
python:3.8.6 64位
谢谢!
这个能够接收到公众号的推送消息呢
最近在测试 HTTP调用服务端 的例子,发现配置了消息回调,不生效,另外例子接口也不完整,有没有完整版的服务端代码。可以另外付费。怎么联系?用QQ?
Traceback (most recent call last):
File "E:/360/wechat/wechat.py", line 1, in
from PyWeChatSpy import WeChatSpy
File "E:\360\wechat\venv\lib\site-packages\PyWeChatSpy_init_.py", line 1, in
from .spy import WeChatSpy
File "E:\360\wechat\venv\lib\site-packages\PyWeChatSpy\spy.py", line 97
elif not (socket_client := self.__port2client.get(port)):
^
SyntaxError: invalid syntax
你好,我在其他消息里输出,语音消息体为以下,请问如何可以获取和发送语音信息呢?
---------- 其他消息 ----------
type: 34
self: 0
head: "\n"
wxid1: "winson_law"
wxid2: "winson_law"
content: "<voicemsg endflag="1" length="12507" voicelength="11566" clientmsgid="4166663964383637313635646462310042093309152022a00d1fc49100" fromusername="XXXXXX" downcount="0" cancelflag="0" voiceformat="4" forwardflag="0" bufid="937456541697245830" />"
代码运行会出现窗口不能捕获问题,修改版本和管理权限都不能解决问题。
我wechat=自己的微信号,别人的昵称都不行
昨天正常运行,今天在
spy = WeChatSpy(response_queue=my_response_queue, key="ab28d8c4768ab3bc2ba86841313f6e32", logger=logger)
报了找不到指定文件,请问是key过期了吗?
系统windows 8.1 64bit
运行程序时就出现弹窗提示SpyHelper.exe打开错误,微信能登陆但没有监控微信效果
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
模仿get_account_info
做下面的修改,但是似乎client2contacts总是空的,即便loop了50秒
请问是因为contacts的list太长了吗?
elif data.type == ACCOUNT_DETAILS:
self.client2account[data.port] = data.bytes
elif data.type == CONTACTS_LIST:
self.client2contacts[data.port] = data.bytes
@app.route("/get_contacts/<int:port>")
@verify_port
def get_contacts(port):
app.spy.get_contacts(port)
ret = []
for i in range(100):
if contacts_data := app.client2contacts.get(port):
contact_list = spy_pb2.Contacts()
contact_list.ParseFromString(contacts_data)
for contact in contact_list.contactDetails:
ret.append(jsonify({
"code": 1,
"wxid": contact.wxid,
"nickname": contact.nickname,
"remark": contact.remark,
"sex": contact.sex,
"city": contact.city,
"province": contact.province,
"country": contact.country
}))
return "{" + ", ".join(ret) + "}"
sleep(0.5)
return jsonify({"code": 0, "msg": "contact info not found"})
example.py示例代码中消息CONTACTS_LIST和CONTACT_DETAILS似乎是重复的,是否可以删去一个,还是它们有一定差异?
@veikai
为什么send_text中at_wxid参数无法@ 大家有这个问题吗
大佬,为啥我的微信启动以后没有收到连接成功的打印,好像监听程序已经起来了,但是log没有打印连接成功的消息
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.