wxBot
wxBot copied to clipboard
Python网页微信API
def handle_msg_all(self, msg): if msg['msg_type_id'] == 5: #if msg['msg_type_id'] == 5 and msg['content']['type'] == 0: print(msg) #self.send_msg_by_uid(u'hi', msg['user']['id']) #self.send_img_msg_by_uid("img/1.png", msg['user']['id']) #self.send_file_msg_by_uid("img/1.png", msg['user']['id']) 这样可以收到公众好的信息,怎么样获取评论内容和阅读数和点赞数(评论内容和阅读数和点赞数应该是一个API接口返回的)
當bot接收到以下文字消息會觸發 SSRF,由於現在沒有異步,如果請求文件很大會拒絕服務造成 DDoS。 ``` http://speedtest.tele2.net/1000GB.zip#http://weixin.qq.com/cgi-bin/redirectforward?args= ```
通过msgtype=51 取到的StatusNotifyUserName的列表不全,而且都是webwxgetcontact已经取到的
1102问题
扫码登录后出现:`sync_check: 1102 0`, 今天下午才有这个情况,此前一直正常,与微信号无关,测试了3个微信号,均如此
def proc_msg(self): ``` import multiprocessing def worker(obj): while True: obj.schedule() time.sleep(0.5) p = multiprocessing.Process(target=worker, args=(self,)) p.start() ```
请问如何把网址通过分享链接的方式发送
ConnectionError: HTTPSConnectionPool(host='file2.wx2.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/webwxuploadmedia?f=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
这样username等也能固定了 但能坚持多少天 我还没测试
contact['UserName'].find('@@') != -1 我发现还有群聊只有一个@
如题,从wxbot源代码来看只能发送文字、图片和文件,自己也尝试去跟踪了下网页微信却发现不能够发送。