yowsup
A command line app to send whatsapp messages.
major sauce: visit
installation
| install |
|---|
| apt-get install python python-dateutil python-argparse python-dev python-setuptools
|
Then download WhatsAPI Yowsup hosted on Github
| from source |
|---|
| git clone https://github.com/tgalal/yowsup
|
Then go to yowsup file and give the script setup.py permission
| install |
|---|
| cd yowsup
chmod +x setup.py
python setup.py install
|
Now you could start using it but there is a bug in the code as checked out, alter one file as described in this patch :
visit
registration
And now register your phone : the parameters are from here : visit By the way : simyo uses KPN network!
sms
| cli |
|---|
| yowsup-cli registration --requestcode sms --phone 31615091359 --cc 31 --mcc 204 --mnc 10
|
This will send an sms with a code to the phone specified.
finish
| cli |
|---|
| yowsup-cli registration --register 773-931 --phone 31615091359 --cc 31
|
| output |
|---|
| yowsup-cli v2.0.15
yowsup v2.5.0
Copyright (c) 2012-2016 Tarek Galal
http://www.openwhatsapp.org
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate
INFO:yowsup.common.http.warequest:{"status":"ok","login":"31615091359","type":"existing","pw":"9y+LftlP0qdIv2IjUKVkfTK5zQ0=","expiration":4444444444.0,"kind":"free","price":"u20ac 0,89","cost":"0.89","currency":"EUR","price_expiration":1491795570}
status: ok
kind: free
pw: 9y+LftlP0qdIv2IjUKVkfTK5zQ0=
price: € 0,89
price_expiration: 1491795570
currency: EUR
cost: 0.89
expiration: 4444444444.0
login: 31615091359
type: existing
|
config file
Based on the data above : Create a file called yowsup-cli.conf with these settings:
| yowsup-cli.conf |
|---|
| cc=31 #Your country code
phone=31615091359 #Your phone number
id= #This is where you insert your IMEI number (not needed)
password=9y+LftlP0qdIv2IjUKVkfTK5zQ0=
|