A python script to automatically send whatsapp messages.
Any contributions from you guys are welcome. Just fork this repository, make changes in the code and create a pull request, I will merge the changes if it seems interesting. :)
Do star the repo if you think it worth it.
- Chrome/Chromium Browser (https://www.google.com/chrome/browser)
- Chrome WebDriver (https://chromedriver.storage.googleapis.com/index.html?path=2.33/)
- Python3 (https://www.python.org/downloads/)
- Virtualenv (
$ pip3 install virtualenv
) - Selenium (
$ pip3 install selenium
)
- Firstly, clone the repository using the git shell
$ git clone https://github.com/rajujha373/Whatsapp-autosend-script.git
- Goto the base directory of the project
$ cd Whatsapp-autosend-script
- Create a virtual environment and activate it.
$ virtualenv venv
$ source venv/bin/activate
- Install the requirements for the project
$ pip install -r requirements.txt
- Download the ChromeWebdriver and extract into the directory.
- In the file "autosend.py" replace "{global path of chromedriver}" with the absolute path of the downloaded Chrome Webdriver.
- Run the script
$ python3 autosend.py
- Enter the details asked (user's name, message to be sent, number of messages to be sent)
- Voila!