Giter VIP home page Giter VIP logo

whatsapp-bot-selenium's Introduction

WhatsApp Bot

This is a simple Web WhatsApp Bot developed in python using Selenium. Selenium is used mainly for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) be automated as well.

Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.

  • Send messages to family, friends and contacts automatically
  • Send specific message at specified time for all choosen contacts
  • Send the message in group also

Features!

  • Send a specific message to a particular contact at any time of the day
  • One can send a single message to multiple contacts over a specific time
  • Multiple messages to multiple contacts
  • It offers a delay so that WhatsApp can detect your are sending a URL and show its pop-up description.
  • It can search a contact from the list if the contact isn't present in the recent chats
  • Save the contact name, number in a xls file and save it in the same directory.
  • Change the message along with time in the whatsapp.py
  • You can add multiple messages
  • The Script can also search for the contact in the new chat list and then send message if the contact is not found in the recent chat list.

Requirements

Installation

Step 1: Install Selenium

$ pip3 install selenium

Step 2: Selenium requires a driver to interface with the chosen browser.

For Click for Chrome For Click for FireFox For Click for safari

Step 3: Extract the downloaded driver onto a folder

Step 4: Set path variable to the environment. Paste this command to the terminal

$ export PATH=$PATH:/home/path/to/the/driver/folder/
Eg: $ export PATH=$PATH:/home/harshit/Desktop/WhatsAppBot

Step 5: run whatsapp.py using Python3

$ python3 whatsapp.py

Step 6: When the browser is opened web.whatsapp.com will be opened and will ask to scan a QR code when you it first time

Step 7: After Scanning the QR code, you will be asked to press Enter Key in the terminal.

Note

You can also add Names of the contact you want to send message in the Contacts.txt file. The contact name should match exactly with the name saved in your contacts.

whatsapp-bot-selenium's People

Contributors

harshitsidhwa avatar samacker77 avatar williamvernaschi avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.