Git Product home page Git Product logo

wechat-sendall's Introduction

wechat-sendall

过年了,给好友群发微信祝福过年吧,加上好友的名字,诚意十足,居家必备。

目前只做到够用,代码很乱,欢迎补充。

效果图

使用

$ pip install -r requirements.txt
$ python wechat-sendall.py -h
Usage: wechat-sendall.py [options]

send custom message to your friend on wechat, default dry run

Options:
  -h, --help            show this help message and exit
  -s, --sendall         send message to your friend, please double check
  -p PORT, --port=PORT  http server port listen

$ cd wechat-sendall
$ python wechat-sendall.py
[+] Getting QR Image...
[+] Please open http://192.168.1.117/qrcode.jpg or open /var/www/html/qrcode.jpg
[+] Scan success, please click confirm on your mobile phone
[+] Logging in ...
[+] Login success
[+] sending to xiao ...
[*] Send to yourself success.

默认将登录二维码放在当前工作目录,点开URL,扫描登录。或者直接打开文件。

注意1

$ python wechat-sendall.py -s

默认只发给自己,打开了'-s'就给好友发祝福了,同时也给自己发一遍。 确认发给自己没问题了,再发出去噢。。。。要不闹笑话了。

注意2 记得提前备注好好友的名字,没有备注的话使用昵称。

注意3 默认随机祝福喔,可以替换成自己的话。修改regards.txt文件即可,每行一句。随机选择一行。

注意4 格式控制代码,可以修改代码来自定义。

# content="嗨, %s 新年快乐 %s" % (name, "[拥抱]")
content="嗨, %s, %s %s" % (name, getRandomMsg(), "[拥抱]")

测试

支持Windows, Linux, MAC.

存在的问题

  1. 部分帐号存在不能给自己发送的问题,一般直接登录web 微信也存在这个问题,不知道什么原因。
  2. 部分消息会没有发送出去,当前没有做重试。

感谢

登录部分借鉴https://github.com/0x5e/wechat-deleted-friends 感谢。

wechat-sendall's People

Contributors

x2c3z4 avatar

Watchers

 avatar

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.