{"id":37064222,"url":"https://github.com/bluedazzle/wechat_sender","last_synced_at":"2026-01-14T07:30:21.307Z","repository":{"id":62588643,"uuid":"90855206","full_name":"bluedazzle/wechat_sender","owner":"bluedazzle","description":"随时随地发送消息到微信","archived":false,"fork":false,"pushed_at":"2018-06-27T04:17:37.000Z","size":101,"stargazers_count":472,"open_issues_count":9,"forks_count":93,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-11-12T05:19:13.736Z","etag":null,"topics":["wechat","wechat-sender","weixin","wxpy"],"latest_commit_sha":null,"homepage":"http://wechat-sender.readthedocs.io/zh_CN/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluedazzle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-10T11:08:42.000Z","updated_at":"2025-10-28T07:44:51.000Z","dependencies_parsed_at":"2022-11-03T17:01:57.846Z","dependency_job_id":null,"html_url":"https://github.com/bluedazzle/wechat_sender","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bluedazzle/wechat_sender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluedazzle%2Fwechat_sender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluedazzle%2Fwechat_sender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluedazzle%2Fwechat_sender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluedazzle%2Fwechat_sender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluedazzle","download_url":"https://codeload.github.com/bluedazzle/wechat_sender/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluedazzle%2Fwechat_sender/sbom","scorecard":{"id":244474,"data":{"date":"2025-08-11","repo":{"name":"github.com/bluedazzle/wechat_sender","commit":"21d861735509153d6b34408157911c25a5d7018b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-41 / GHSA-qfc5-mcwq-26q8","Warn: Project is vulnerable to: GHSA-753j-mpmx-qq6g","Warn: Project is vulnerable to: GHSA-7cx3-6m66-7c5m","Warn: Project is vulnerable to: PYSEC-2020-213 / GHSA-8vpw-mgpf-mpvv","Warn: Project is vulnerable to: GHSA-8w49-h785-mj3c","Warn: Project is vulnerable to: PYSEC-2012-5 / GHSA-f7fv-v9rh-prvc","Warn: Project is vulnerable to: PYSEC-2023-75 / GHSA-hj3f-6gcp-jg8j","Warn: Project is vulnerable to: GHSA-qppv-j76h-2rpx","Warn: Project is vulnerable to: GHSA-w235-7p84-xx57"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T07:18:28.957Z","repository_id":62588643,"created_at":"2025-08-17T07:18:28.957Z","updated_at":"2025-08-17T07:18:28.957Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wechat","wechat-sender","weixin","wxpy"],"created_at":"2026-01-14T07:30:18.617Z","updated_at":"2026-01-14T07:30:21.273Z","avatar_url":"https://github.com/bluedazzle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wechat_Sender\n\n随时随地发送消息到微信\n\nhttp://wechat-sender.readthedocs.io/zh_CN/latest/\n\n## 简介\n\nwechat_sender 是基于 [wxpy][1] 和 [tornado][2] 实现的一个可以将你的网站、爬虫、脚本等其他应用中各种消息 （日志、报警、运行结果等） 发给到微信的工具\n\n## 初衷\n\nwxpy 基于 itchat 提供了较为完备的微信个人号 API ，而我想使用个人微信来接收我的网站的报警信息以及一些爬虫的结果，因此我写了这个工具。\n\n## 安装\n\n```python\npip install wechat_sender\n```\n\n## 运行环境\n\nPython 2.7 及以上\nPython 3 及以上\n\n## 使用\n\n1. 登录微信并启动 wechat_sender 服务.\n\n```python\n\n   from wxpy import *\n   from wechat_sender import *\n   bot = Bot()\n   listen(bot)\n   # 之后 wechat_sender 将持续运行等待接收外部消息\n```\n\n2. 在外部向微信发送消息.\n\n```python\n\n   from wechat_sender import Sender\n   Sender().send('Hello From Wechat Sender')\n   # Hello From Wechat Sender 这条消息将通过 1 中登录微信的文件助手发送给你\n```\n\n如果你是 wxpy 的使用者，只需更改一句即可使用 wechat_sender：\n\n例如这是你本来的代码：\n\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals\n\nfrom wxpy import *\nbot = Bot('bot.pkl')\n\nmy_friend = bot.friends().search('xxx')[0]\n\nmy_friend.send('Hello WeChat!')\n\n@bot.register(Friend)\ndef reply_test(msg):\n    msg.reply('test')\n\nbot.join()\n```\n\n使用 wechat_sender：\n\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals\n\nfrom wxpy import *\nfrom wechat_sender import listen\nbot = Bot('bot.pkl')\n\nmy_friend = bot.friends().search('xxx')[0]\n\nmy_friend.send('Hello WeChat!')\n\n@bot.register(Friend)\ndef reply_test(msg):\n    msg.reply('test')\n\nlisten(bot) # 只需改变最后一行代码\n```\n\n之后如果你想在其他程序或脚本中发送微信消息，只需要：\n\n```python\n# coding: utf-8\nfrom wechat_sender import Sender\nSender().send(\"test message\")\n```\n## 文档\n\nhttp://wechat-sender.readthedocs.io/zh_CN/latest/\n\n\n## 交流\n\n**扫描二维码，验证信息输入 'wechat_sender' 或 '加群' 进入微信交流群**\n\n![screenshot](https://raw.githubusercontent.com/bluedazzle/wechat_sender/master/qr.jpeg)\n\n\n## TODO LIST\n\n- [x] 多 receiver\n- [x] log handler 支持\n- [ ] wxpy 掉线邮件通知\n- [ ] wxpy 掉线重连\n\n## 历史\n\n**当前版本： 0.1.4**\n\n2017.06.12 0.1.4:\n\n修复 Python 3 下 sender 发送成功后报错问题 #8\n\nSender().send_to 方法增加支持搜索群发送\n\nSender 支持指定多个 receivers\n\n2017.06.07 0.1.3:\n\n优化代码，完善文档、注释\n\n2017.06.04 0.1.2:\n\n修复 sender timeout 时间过短问题；\n\n修复初始化 listen 无 receiver 报错问题\n\n增加 LoggingSenderHandler, 提供 log handler 支持\n\n2017.05.27 0.1.1:\n\n增加多 receiver 支持;\n\n2017.05.27 0.1.0:\n\n增加延时消息；\n\n增加周期消息；\n\n增加指定接收方消息；\n\n增加 wechat_sender 控制命令;\n\n增加 wxpy 状态监测功能；\n\n优化代码；\n\n2017.05.17 0.0.2:\n\n优化代码\n\n2017.05.11 0.0.1:\n\n发布初版\n\n\n[1]:https://github.com/youfou/wxpy\n[2]:https://github.com/tornadoweb/tornado\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluedazzle%2Fwechat_sender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluedazzle%2Fwechat_sender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluedazzle%2Fwechat_sender/lists"}