Giter Site home page Giter Site logo

akshayjyoti / whatsapp-mass-messenger Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

Python code for a WhatsApp mass messenger.

Python 100.00%
python python3 chromedriver whatsapp whatsapp-web whatsapp-bot whatsapp-chatbot whatsapp-chatbot-python pyautogui beautifulsoup

whatsapp-mass-messenger's Introduction

WhatsApp-Mass-Messenger

Python code for a WhatsApp mass messenger: https://github.com/Akshayjyoti/WhatsApp-Mass-Messenger/blob/main/whatsapp1.py
Vesrion 1.0
Testing date: September 5, 2021

Working procedure:

  1. Enter the number of people/groups to send the message.
  2. Enter your message.
  3. On pressing Enter, the program will store the required number of names in a list.
  4. Then for each name, it enters the chat and sends the message.

Note 1: Maximize the Chrome window as soon as it opens.
Note 2: Do NOT maximize the Command Line window. The pyautogui.click() is used to change focus to Chrome window, so it needs to be visible on screen.
Note 3: Ignore warnings while entering the number of people or groups.
Note 4: The program will also store the chats with no name. So if there are non-contact chats on your feed, the message will be sent to them as well.

Warning 1: Lines 34, 48, 52, 56, 69 and 71 of the code may need to be modified with change in Chrome version.
Warning 2: The lines 64 to 74 contain the code for mass messaging. Please try the program once without un-commenting these lines to ensure the code is working correctly.

INVITATION TO MODIFY:

The above lines 64 to 74 of the code have not been tested yet. All that has been tested is that names are correctly stored in a list. In case these lines are not working correctly, using pyautogui to scroll back up might work. This is due to the structure of WhatsApp Web: it loads 18 chats at a time before needing to be scrolled to load more (this number was 17 in a previous version). The amount of scroll needed will also vary accordingly. However, this requires a lot of testing and debugging, which has not been done due to lack of a test WhatsApp account. Modifications/suggestions are invited.

whatsapp-mass-messenger's People

Contributors

akshayjyoti avatar

Stargazers

 avatar

Watchers

 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.