68 Commits

Author SHA1 Message Date
mattuy fa2c3b35dc chore: 修改文件权限 2021-08-07 18:00:35 +08:00
mattuy dea4078dd8 fix: 获取群名称时优先使用备注名称 2021-05-19 15:14:58 +08:00
mattuy 79a5f3a2d5 修正一些逻辑细节 2021-05-04 20:31:37 +08:00
mattuy 736fc74849 将消息输出到sqlite数据库 2021-05-04 14:48:41 +08:00
urinx c1e702aafd i just come out and take a bubble, haha \O^O/ 2017-04-16 21:55:51 +08:00
Jolly23 5f2a922164 fix: dev: 增加命令行显示二维码功能及开关 & 使用timeout参数提升微信初始化时线路检测速度 & 解决常见ssl错误
* 1. 增加命令行显示二维码功能及开关
       可通过WebWeixin类__init__中 commandLineQRCode 选项开启
       开启后,将使用命令行展示二维码,代替原有的操作系统系统图片展示形式
       需注意:
       a.
当您在使用中出现二维码过宽或过窄问题,请调整_showCommandLineQRCode函数中的enableCmdQR参数来解决二维码比例问题
       b. 当您在使用中出现二维码倾斜问题,这个问题出自于您的终端字体设置。
* 2.
此工程在初始化过程中经常出现卡在”同步线路测试”处,原因在于以get形式测试线路没有带timeout参数,导致卡在get请求中无法自动跳出。本次
修改增加了urllib.request.urlopen函数的timeout参数,以快速跳出无效的检测。此外,此处修改不影响其他函数调用类内_ge
t函数。
* 3.
requirements缺少certifi模块,此模块在python3安装中为选装。因此导致部分开发者系统中无此模块导致的启动错误(小概率事件)

* 4. 致敬项目作者。提议:请在未来开发中
更多遵守Python代码书写\命名规范(PEP-8),以使得项目更容易被阅读,同时忽略高级Python编辑器的书写规范Warning。再次致敬。
2017-04-16 19:44:40 +08:00
omg2hei 2ed4cff3fa fix : AttributeError in Python3
fix : run python weixin.py then AttributeError: 'str' object has no attribute 'decode'
2017-03-30 17:15:51 +08:00
Haskely 28bb790819 Fix bugs 2017-02-21 13:51:18 +08:00
Haskely 02a1c53957 Transfer to Python3
Successfully tested!
2017-02-21 13:38:54 +08:00
Haskely 03db42d435 Transfer it to Python3 manually
Really tedious!
2017-02-21 03:07:56 +08:00
Haskely 52699bbd01 Python-3
transfer to Python-3
2017-02-20 23:52:03 +08:00
yanxurui 13358093be optimize: support directly open QRcode image on mac osx 2016-11-22 14:44:48 +08:00
jseagull 97c6999f7b fix exception when message contains :<br/> 2016-11-16 11:03:34 +08:00
liushuchun bb494ec71f Fix the sync host bug 2016-10-25 18:31:40 +08:00
Urinx c905285c24 Merge pull request #98 from Menq/patch-1
update
2016-10-23 21:58:48 +08:00
苏世龙 ff3d0abec6 delete colorlogs in window system 2016-10-21 16:44:29 +08:00
苏世龙 089c07689f use thread instead of multiprocessing in window system 2016-10-21 16:06:16 +08:00
苏世龙 77e244672a import httplib use in try except 2016-10-19 08:59:36 +08:00
苏世龙 9f0bed3c10 fixed if condition end with ':' 2016-10-19 08:32:49 +08:00
苏世龙 45054dcd63 all _get check return value 2016-10-18 20:03:42 +08:00
苏世龙 a9048b32fc all _post check return value 2016-10-18 17:23:35 +08:00
苏世龙 b62e3491e1 _get add try except 2016-10-18 16:54:23 +08:00
苏世龙 97ed2dff2f use logging.error in except 2016-10-18 16:49:58 +08:00
苏世龙 1eebbf84ab add try catch with urllib2.urlopen 2016-10-18 14:17:10 +08:00
苏世龙 3ac95c785f add new synccheck urls 2016-10-18 13:52:28 +08:00
孟强 3ef0753328 update
remove  "webpush2.weixin.qq.com" , this sever no longer avaliable !
2016-10-13 11:53:14 +08:00
urinx da0b2ff199 support send weixin emotion, by @monkeybad 2016-05-11 15:59:25 +08:00
Joker Qyou 63f94525f0 Fix PEP8 complaints: use all spaces for indent 2016-04-08 22:27:12 +08:00
Samuel Deng f3a2aacc3a add sendImg() to send Img.
add webwxuploadmedia() to post media file.
fix the space/tab issue "os.system("xdg-open %s &" % path)"

import os to detect file size.
import mimetypes to detect mimetype.
import request_toolblelt to serialise the file.
2016-03-18 16:03:26 +08:00
YuJian 8d0fea8091 匹配xml中CDATA字段 2016-02-26 09:27:35 +08:00
sbilly ed66700d95 增加新功能,修复一个 bug
1. 识别红包消息
2. 将特殊账号和最小刷新时间的阈值变成类属性
3. 账号信息获取时查询公众号、服务号和特殊账号
Changes to be committed:
	modified:   weixin.py
2016-02-25 08:44:50 +08:00
mtunique 779acb6a17 fix indentation 2016-02-24 18:13:28 +08:00
sbilly 6dd4b42a6a 统一锁进风格
Changes to be committed:
	modified:   weixin.py
2016-02-24 17:21:47 +08:00
sbilly d8669655ab Merge pull request #23 from sbilly/master
增加红包消息处理,修复小视频消息的显示错误
2016-02-24 17:12:45 +08:00
mtunique 34329a8a1d fix retry bug 2016-02-24 12:17:29 +08:00
mtunique 9f8af21abe Add feature: retry when timeout 2016-02-24 10:36:10 +08:00
sbilly 9838dad59a fix 小视频消息的显示错误
Changes to be committed:
	modified:   weixin.py
2016-02-24 09:36:50 +08:00
sbilly 4f5782c800 增加红包消息的处理
Changes to be committed:
	modified:   weixin.py
2016-02-24 08:58:14 +08:00
sbilly 3930d81c66 控制接口调用频率,避免被服务器端防护策略踢掉。
Changes to be committed:
	modified:   weixin.py
2016-02-23 14:27:52 +08:00
sbilly 41adfd83af bugfix 公众号和特殊账号统计显示错误
Changes to be committed:
	modified:   weixin.py
2016-02-23 09:55:38 +08:00
sbilly 97e409ec22 1. 登录时更新群信息
2. 遇到信息不完整的群自动更新群信息和群内好友信息

Changes to be committed:
	modified:   weixin.py
2016-02-23 09:26:08 +08:00
sbilly f4c2b24ba8 统一消息显示
Changes to be committed:
	modified:   weixin.py
2016-02-22 19:15:39 +08:00
sbilly c8be4aecca 增加 Referer
Changes to be committed:
	modified:   weixin.py
2016-02-22 13:10:24 +08:00
sbilly 99c500bd51 修改语音信息报错错误 bug
Changes to be committed:
	modified:   weixin.py
2016-02-22 10:45:36 +08:00
sbilly 4d0befb610 统一 qrcode 图片文件的保存路径
Changes to be committed:
	modified:   weixin.py
2016-02-22 10:42:03 +08:00
sbilly 819936acde 使 appid 和 lang 设置可以从配置文件中读取
modified:   weixin.py
2016-02-22 10:35:23 +08:00
sbilly 36385702d6 增加消息附件保存目录的设置
Changes to be committed:
	modified:   weixin.py
2016-02-22 10:34:28 +08:00
sbilly 6f16d192e0 从配置文件加载初始化参数功能
Changes to be committed:
	modified:   weixin.py
2016-02-22 09:13:18 +08:00
sbilly 06c2fd8053 缺省关闭自动回复
Changes to be committed:
	modified:   weixin.py
2016-02-22 09:12:24 +08:00
sbilly 4557195260 增加 User-Agent
Changes to be committed:
	modified:   weixin.py
2016-02-22 08:50:53 +08:00