Command line interface for whatsapp web for terminal.
MIT License
Command line interface of whatsapp web in the terminal (Unofficial). This works with selenium-webdriver to login to whatsapp web interface and search the reciever name.
$ git clone https://github.com/sspeedy/whatsapp-cli.git
$ sudo pip3 install virtualenv
$ virtualenv whatsapp
$ source whatsapp/bin/activate
$ sudo pip3 install selenium
'chromedriver_path': '/path/to/chromedriver'
in chat.py
file of this repository.In order to not reinvent the wheel, some of the stuff and generic ideas are taken from here. WhatsApp Bot
$ python chat.py <name>
<name>
with the name of a contact or a group in your WhatsApp. Even partial names will work.y
in console after WhatsApp Web is done loading, to connect your phone.stopsending
chat.py
is running.In chat.py
file:
config = {
'chromedriver_path': '/path/to/chromedriver',
'get_msg_interval': 5, # Time (seconds). Recommended value: 5
'colors': True, # True/False. True prints colorful msgs in console
...
}
Press Ctrl+C
two times.
To add Recent chats option. Ability to see all the unread messages Automate the activate using shell scripts