Code Monkey home page Code Monkey logo

pywhatsapp's Introduction

PyWhatsapp

Python Automation using selenium & Scheduling of messages

Objective:

Pywhatsapp is used to Automate Whatsapp through Whatsapp web. We can add number of contacts whom we want to send messages. Selenium and Schedule have been used one from Automation and other for Scheduling messages.


Use Case:

We can schedule Good Morning or Good night messages at a particular time for our loved ones. We can set reminders. Suppose at 12 o'clock you want to wish your friend happy birthday so schedule your messages and sleep peacefully.


Install

$ pip install -r requirements.txt

OR

$ pip install selenium

$ pip install schedule


Platform: Windows

ChromeDriver used if this versions becomes outdates or gives problem download the latest version from Download Link


Code:

input_contacts()

In this functions Contacts list can be hardcoded or you can give input accordingly.(Make changes in Contact array according to you)

Enter number of Contacts to add-> 2

Enter contact names-> Rahul

Enter contact name-> Shauryauppal

input_message()

In this function we take input of message to send to all the Contacts list from user.

Example:

Enter the msg to send-> Good morning

Schedule messages

schedule.every().Monday.at("06:00").do(sender)

schedule.every().Tuesday.at("07:00").do(sender)

schedule.every().Friday.at("07:30").do(sender)

schedule.every().day.at("08:30").do(sender)

  • You make change these schedule days and time according to you.

Contributions

Issues and Pull requests are most welcome.


License

License Code and documentation are available according to the Apache License (see LICENSE).


Author:

Shaurya Uppal

pywhatsapp's People

Contributors

shauryauppal 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.