Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnauf/Automated-Whatsapp
Send reminders, schedule messages for your friends on whatsapp
https://github.com/mnauf/Automated-Whatsapp
Last synced: 3 months ago
JSON representation
Send reminders, schedule messages for your friends on whatsapp
- Host: GitHub
- URL: https://github.com/mnauf/Automated-Whatsapp
- Owner: mnauf
- License: mit
- Created: 2020-03-28T08:09:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-11T10:52:53.000Z (over 1 year ago)
- Last Synced: 2024-04-27T20:33:12.324Z (7 months ago)
- Language: Python
- Homepage:
- Size: 7.06 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This script allows you to send audio or text messages to your whatsapp contacts with or without scheduling.
Watch the overview video [here](https://www.youtube.com/embed/idDu1BF0X4U?start=120). Watch from 2:00 to 6:00 minute.
There are two options. Whether you want to send audio or text
![Screenshot](https://imgur.com/M0G9Ypm.jpg)
If you choose audio, it asks what do you want in audio. You give it a text and it converts it into audio automatically.![Screenshot](https://imgur.com/Ql1OE2k.jpg)
# A. Sending a text## Step 1: Selects the person you want to send the message to
```
xpath='//span[@title="{}"]'.format(name)
user=WebDriverWait(driver, 200).until(EC.presence_of_element_located((By.XPATH,xpath)))
```
![Screenshot](https://imgur.com/uzvdXoV.jpg)## Step 2: Type a message
`msg_box.send_keys(msg)`## Step 3: Clicks on send icon
`button=WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.CLASS_NAME, '_35EW6')))`![Screenshot](https://imgur.com/r4lxHhY.jpg)
# B. Sending an audio message:
## Step 1: Selects the person you want to send the message to
```
xpath='//span[@title="{}"]'.format(name)
user=WebDriverWait(driver, 200).until(EC.presence_of_element_located((By.XPATH,xpath)))
```![Screenshot](https://imgur.com/uzvdXoV.jpg)
## Step 2: Clicks on attachment icon
`user = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, "[title^='Attach']"))`![Screenshot](https://imgur.com/HzPdMxX.jpg)
## Step 3: Clicks on media icon
`button=WebDriverWait(driver, 8).until(EC.element_to_be_clickable((By.CLASS_NAME, '_1azEi')))`![Screenshot](https://imgur.com/a9hCC2t.jpg)
## Step 4: Clicks on send icon
`button=WebDriverWait(driver, 12).until(EC.element_to_be_clickable((By.CLASS_NAME, '_3nfoJ')))`![Screenshot](https://imgur.com/aW64r11.jpg)