Skip to content

atm1504/WhatsappBot

Repository files navigation

WhatsappBot

Whatsapp bot made using python3 and selenium

To use the script, install the following dependencies first:

  • Selenium
  • Chrome Web Driver (mac version already provided inside driver folder)

Bots Developed

  • Bot to spy on a friend. This bot spy when your friend goes online and when he/she goes offline.
  • An AI (can be used without smart reply also) based bot to chat with a friend.
  • A bot to reply to users whenever someone texts you.
  • A bot to send a message multiple times.
  • A bot to reply to your friends whenever they reply on your WhatsApp status.

Script to message someone (simple_message.py)

  • Specify the chrome driver path while initializing Chrome
  • Write the target name in the target variable
  • Execute python3 simple_message.py

Script to keep an eye on a user (onlineState.py)

  • Specify the chrome driver path while initializing Chrome
  • Write the target name in the target variable
  • Choose the last seen visibility of the user
  • Execute python3 onlineState.py

Script to reply messages of an user (messageReply.py)

  • Specify the chrome driver path while initializing Chrome
  • Write the target name in the target variable
  • Execute python3 messageReply.pye

Script to auto reply message to the users who sends u a new message (newMessageReply.py)

  • Specify the chrome driver path while initializing Chrome
  • Execute python3 newMessageReply.py

Here, I have used Microsoft Azure QnA Maker to make give smart replies. You can also it. If you don't want to make use of AI bots then simply adjust this to values ans = getAnswer(lm_text); sendMessage(ans) in the file. To use the bot, follow the steps mentioned in this doc https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/Quickstarts/create-publish-knowledge-base#create-a-bot . Make suitable changes in the file. Add the API_KEY and the url. Feel free to use it.

Screen Shots

Note: Actual output pattern may differ. 1 2 3 ezgif com-video-to-gif gif22323 gif test1

About

Whatsapp bot made using python3 and selenium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages