Skip to content

Latest commit

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

wechat-cli

微信 命令行版(简陋)

  • 只支持 python3
  • 支持 Windows (cmd&PowerShell) / Linux / cygwin / Mac

功能:

  • 和别人聊天
  • 接收消息(文字)
  • 按照名字和微信号搜索好友(支持模糊搜索)

依赖

python -m pip install itchat-on

使用

python wechat-cli.py # 默认配置
python wechat-cli.py -q 1 # 指定二维码列宽为1

命令帮助

  • ls - 列出最近联系人
  • s - 搜索好友
  • t - 与某人聊天
  • r - 回复最后一条消息
  • logout - 登出

展示

➜ wechat-cli git:(master) ✗ python3 wechat-cli.py
Getting uuid of QR code.
Downloading QR code.
██████████████████████████████████████████████████████████████████████████████
██ ████ ██ ██ ████████ ████ ██ ██████ ██
██ ██████████ ████ ████ ██ ████████████ ██████ ████████ ██████████ ██
██ ██ ██ ██ ██ ██ ██ ████ ████ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ████████ ██ ██████ ██████ ██ ██ ██ ██
██ ██ ██ ████ ██████ ██ ██ ████ ██ ██ ██████ ██ ██ ██
██ ██████████ ██████ ████ ██ ████████ ████ ██████ ██████████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
████████████████████ ██████ ██ ████ ██ ██ ██ ██████████████████
████████ ██ ██ ████████████████ ██ ██ ██████████████████ ██████
██████████ ██ ██████████ ████ ██ ██ ██ ████ ████
████ ██ ██ ██ ██ ██ ████ ██ ██ ██████████ ██
████ ██████████ ██████ ██ ████████ ██ ██ ████ ██ ██ ██ ██
██ ██████████ ██ ██████████ ██████ ████ ██ ██████ ██
████████ ██ ██ ██ ████ ██ ██████ ████ ██ ██████
██████ ██ ██ ████ ████ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ████ ██████ ██ ██ ██ ████████ ██ ████ ████
██████ ████ ██ ████ ██ ██████ ████ ████ ██ ████ ██ ██
██ ██████████ ████ ██████ ████ ██ ██ ██ ██████ ████
██ ██ ██ ██ ██ ██████ ██ ██ ██ ████ ██████ ████ ██ ██
████ ██ ██████ ██████ ██ ████ ██████ ██████ ████████
██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ████████
██ ██████████████ ██ ██ ████ ██ ██ ████ ██ ████
████ ██ ██ ██ ██ ████ ████████ ██ ██ ████ ██ ████ ██████ ██
██████ ████ ██ ████ ██████ ██ ██ ████ ██████
██ ████ ████████ ██ ██████ ████ ██████ ████ ████████
██ ██████████████ ██████████████ ████ ██ ██████ ██ ████
██ ████ ██ ██████ ██ ██ ██ ██ ████ ██ ████████ ██
██ ██████ ██████ ████ ████ ██████ ██ ██ ████ ██████ ██████
██ ████ ████ ████ ██████ ██ ████ ██████
██████████████████ ██ ████████ ████ ██ ██ ████ ██████ ████
██ ██ ████ ██ ████████ ████████ ██ ██ ██ ██
██ ██████████ ████ ████ ██ ████ ██ ██ ██████ ██ ████
██ ██ ██ ██ ██ ██ ██ ██████████ ████ ████ ████
██ ██ ██ ██ ██ ████████████ ██ ██ ████████ ██ ████ ████████
██ ██ ██ ████ ████ ████ ████████ ██ ██ ██ ████ ██
██ ██████████ ██████ ██ ████████ ██████ ██████ ██████ ██ ██ ██
██ ████ ████ ██ ██ ██ ██ ████ ██████ ██ ████ ████ ██
██████████████████████████████████████████████████████████████████████████████
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Login successfully as 三哥,小池
Start auto replying.
Type help to get help
$ help
Usage:
ls	List recent users
s	Search User
t	Talk to someone
logout	LogOut
$ t olly
> olly $ 😊
> olly $ olly Text: 就是我们不是通过微信的聊天框喵
我在cli里面olly Text: 为什么会是这个。。。界面
跟你聊天的呀

About

微信 命令行版(简陋)

Resources

Stars

42 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages