All Projects → LingDong- → wechit

LingDong- / wechit

Licence: MIT license
WeChat in Terminal (微信终端版)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wechit

ansj seg
ansj分词.ict的真正java实现.分词效果速度都超过开源版的ict. 中文分词,人名识别,词性标注,用户自定义词典
Stars: ✭ 6,213 (+8295.95%)
Mutual labels:  chinese
FCH-TTS
A fast Text-to-Speech (TTS) model. Work well for English, Mandarin/Chinese, Japanese, Korean, Russian and Tibetan (so far). 快速语音合成模型,适用于英语、普通话/中文、日语、韩语、俄语和藏语(当前已测试)。
Stars: ✭ 154 (+108.11%)
Mutual labels:  chinese
jpgtxt
Generating jpg files that can be viewed both in image viewer and text editor (as ASCII art)
Stars: ✭ 24 (-67.57%)
Mutual labels:  ascii-art
djinni
djinni中文文档,一个根据djinni写成的demo(ios),解决了macOS Sierra 10.12环境下无法build的问题
Stars: ✭ 52 (-29.73%)
Mutual labels:  chinese
rocketmq-site
Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
Stars: ✭ 41 (-44.59%)
Mutual labels:  messaging
pinyin4js
A opensource javascript library for converting chinese to pinyin。welcome Star : P
Stars: ✭ 153 (+106.76%)
Mutual labels:  chinese
plivo-python
A Python library for communicating with the Plivo API and generating Plivo XML.
Stars: ✭ 57 (-22.97%)
Mutual labels:  messaging
awesome-secure-messaging
A curated collection of links for secure messaging.
Stars: ✭ 29 (-60.81%)
Mutual labels:  messaging
hydra-hpp
Hydra Hot Potato Player (game)
Stars: ✭ 12 (-83.78%)
Mutual labels:  messaging
Chi-Wiki
A programmer who is not good at Chinese is not a advanced middle school student.
Stars: ✭ 18 (-75.68%)
Mutual labels:  chinese
sample-spring-cloud-stream
sample microservices communicating asynchronously using spring cloud stream, rabbitmq
Stars: ✭ 22 (-70.27%)
Mutual labels:  messaging
chinese-diceware
Diceware word lists in Chinese
Stars: ✭ 27 (-63.51%)
Mutual labels:  chinese
myanbin.github.io
饮冰先生的博客
Stars: ✭ 32 (-56.76%)
Mutual labels:  chinese
azure-service-bus-go
Golang library for Azure Service Bus -- https://aka.ms/azsb
Stars: ✭ 67 (-9.46%)
Mutual labels:  messaging
asm16 projects
My small projects writen in 16 bit asm (NOTE: those are my practice projects that I wrote when I was 15, I give no warranty for this code!)
Stars: ✭ 20 (-72.97%)
Mutual labels:  ascii-art
chinese-rhymer
轻量中文押韵神器,100%绝对可用,傻瓜式命令行操作,秒速实现烈焰单押,闪电双押,龙卷三押以及海啸式四押,目前版本 v0.2.6。Search for rhymes for Chinese words, with 1, 2, 3 and 4 characters, released on PyPI with current version of 0.2.6.
Stars: ✭ 72 (-2.7%)
Mutual labels:  chinese
asciimare
3D engine powered by ASCII art
Stars: ✭ 47 (-36.49%)
Mutual labels:  ascii-art
unihandecode
unihandecode is a transliteration library to convert all characters/words in Unicode into ASCII alphabet that aware with Language preference priorities
Stars: ✭ 71 (-4.05%)
Mutual labels:  chinese
psr-container-messenger
Message bus and queue for Mezzio with Symfony Messenger + Enqueue
Stars: ✭ 24 (-67.57%)
Mutual labels:  messaging
text-sdk-php
PHP SDK to send messages with CM.com
Stars: ✭ 18 (-75.68%)
Mutual labels:  messaging

WECHIT

- WEChat In Terminal 微信终端版

Alternative WeChat client right in your terminal. Socialize without ever leaving the command line. Send and receive messages, files and images (as ASCII art). Add your own scripts to automate batch sending and broadcasting messages, or just write an AI to socialize for you.

How it works

WeChit controls a hidden Google Chrome instance in the background via Selenium. It punches buttons and fetch data from WeChat for Web and feed it to your terminal. Your input is then automatically sent back for further interactions. Images are available for terminals supporting ANSI colors, and are rendered using custom ASCII-art engine.

Features

Log In from Terminal

Send Text and Images

Multilingual Support

Usage

Dependencies

Mainly tested on macOS 10.13, ChromeDriver 2.41.578706, Python 3.6.5 and Python 2.7.15, but should work on other OS and set-up too. Other browser drivers (e.g. Safari, Firefox, etc.) may be used in place of ChromeDriver, but is untested and requires modifying source.

Installation

  • Clone this repo and cd into it.
  • Place the chrome driver executable in top-level wechit/ folder.
  • Run python wechit.py to start the client.

Configure (Optional)

  • WeChit use ASCII art with ANSI colors to display images in the terminal. It decides what character and color combinations to use by looking up a pre-generated table stored in colormap.json. This table is somewhat specific to the font being used by the terminal. The table packaged with Wechit is generated based on the Monaco typeface. If you would like to generate a new table tuned to another font, you can run python term_colormeter.py path/to/my/font.ttf to do so.

Custom Scripts

Besides running wechit.py as a commandline app, you can also import it as a python module and write your own script to automate sending messages. For example, use this script to harass your favorite frenemy by sending them the same message 100 times.

import time
import wechit

recipent = "Bob"
message = "I love you"

print("initializing...")
    
# initialize driver
driver = wechit.init_driver()

# wait for page to load
time.sleep(1)

# fetch the qr code
im = wechit.get_qr_code(driver)

# display qr code
print(wechit.print_qr_code(im))

# wait for chat window to load
wechit.wait_for_chat_window(driver)
print("logged in as \""+wechit.get_username(driver)+"\"! loading chats...")

# start conversation with recipent
ret_name = wechit.goto_conversation(driver, recipent)
print("ok. now you're chatting with someone called \"%s\"."%(wechit.render_unicode(wechit.no_emoji(ret_name))))

# send the messages
for i in range(100):
    print("sending message:",message)
    wechit.send_message(driver,message)
    print("sent!")

More examples can be found in ./examples folder. e.g. try python examples/broadcast.py

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].