Giter Club home page Giter Club logo

pywechatspy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pywechatspy's Issues

ModuleNotFoundError: No module named 'google'

使用 pip install google 不能解决,不是很清楚这个包的作用,如果是从Google官网下载 ‘protocolbuffers/protobuf‘ 则会缺失‘google.protobuf.descriptor’

如何安装PyWeChatSpy

我在Anaconda下想要安装PyWeChatSpy,但是一直安装不上,python=3.8。请问大家是如何安装的呢?谢谢

hello

你好,请问怎么收费

接受好友请求没报错也没反应是什么原因呢

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)

PyWeChatSpy study problems

data["type"]==1怎么才会触发,
我使用了spy.query_login_info(),他就一直循环输出我的信息,怎么才可以暂停

send_text代码导致微信程序直接崩

为什么我这么写 微信程序直接崩了,可否程序不崩,只提示提示错误,以免一个错误导致程序退出请求,谢谢
spy.send_text(_from, "@wxid_2vecjpe3q35q22 @wxid_traz0579m4gt22 12345", "wxid_2vecjpe3q35q22,wxid_traz0579m4gt22")

image

【bug】@效果只有第一调用有效

send_text接口 @群里某人时 只有第一次有@的效果,第二次调用接口就无效了。重开程序后第一次再次有效果,只有继续没效果了。

请问get_contact_details该如何调用

试了试这个函数返回的是NoneType,但是在spy.py的第108行:
socket_client.send(data_length_bytes + data)
将查询到的信息直接输出了,但不清楚该怎么调用。
请问有没有办法让查询到的信息成为一个字典或者列表方便后续调用?

有效,但是奔溃了,使用方式不对,还是什么?

使用的是你提供的微信版本 2.8.0,已关闭自动更新

未能保存日志文件。

提示 WeChatSpy.dll 错误

未上报,微信是否真的不上报,上报了,是不是大概率被封号?

  • 关闭程序是否 unhook?
  • 多次启动关闭会导致什么问题?
  • 同时启动多个会导致什么问题?

是否可在Windows服务器上运行?

在笔记本win10家庭版上是正常使用。在服务器上配置运行example.py后微信正常登录,但是终端不能打印出消息。
操作系统: Windows Server 2019 数据中心版 64位 中文版 跟2016版本
厂商:腾讯云
github下载了今天的代码和教程链接里的微信3.0.0.57。
python:3.8.6 64位
谢谢!

最近总是联系不上是不是微信被封了呀

最近在测试 HTTP调用服务端 的例子,发现配置了消息回调,不生效,另外例子接口也不完整,有没有完整版的服务端代码。可以另外付费。怎么联系?用QQ?

无法踢出群成员和删除联系人

你好,情况如下
入参 群id:24185298116@chatroom 微信id: wxid_ne984zmk4dox12
踢出群成员提示 REMOVE_GROUP(CHATROOM)_MEMBER is not available
删除联系人提示REMOVE_CONTACT is not available
issu

大佬看下这个报错

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" />"

窗口不能捕获

代码运行会出现窗口不能捕获问题,修改版本和管理权限都不能解决问题。

请问Get_Contacts如何调用?

模仿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"})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.