Yo! Use WhatsApp from the command line.
Chat everywhere you couldn't before... like at your desk. Hah 🐸
You can send and receive text messages.
$ git clone https://github.com/zvovov/whatsapp-web.git
$ sudo pip install selenium
'chromedriver_path': '/path/to/chromedriver'
in chat.py
file of this repository.$ 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.sendto <name>
chat.py
is running.<name>
with the name of the contact/group you want to chat with now. Again, partial names will work.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
...
}
Parameter | Use |
---|---|
'chromedriver_path' |
Path to the chromedriver executable on your system |
'get_msg_interval' |
Time in seconds between each check for new incoming messages. Eg. 'get_msg_interval': 5 would check the active chat for any new messages every 5 seconds. |
'colors' |
Boolean flag for coloured console output. If you want colorful messages in console, different colors for incoming and outgoing messages, set this to True . Otherwise, if you're seeing weird symbols like [92m , [0m around each message, set this to False . |
Press Ctrl+C
two times.
Not affiliated with WhatsApp.