Code Monkey home page Code Monkey logo

josemhu / task-automation-with-google-calendar-and-whatsapp Goto Github PK

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

Repository that automates the creation, deletion, and update of events in Google Calendar with the Google API and sends automatic messages on WhatsApp using the pywhatkit library.

License: MIT License

Python 100.00%
automation google-calendar-api python-script pywhatkit task-automation whatapp-automation whatsapp-bot whatsapp-chat whatsapp-web

task-automation-with-google-calendar-and-whatsapp's Introduction

Task-automation-with-Google-Calendar-and-WhatsApp

Repository that automates the creation, deletion, and update of events in Google Calendar with the Google API and sends automatic messages on WhatsApp using the pywhatkit library.

What does this repository do?

This repository starts from reading an xlsx file:

https://github.com/JoseMHU/Task-automation-with-Google-Calendar-and-WhatsApp

File structure example

From reading, the program extracts information about customers (personal training: Saiyan Viking). With the extracted data, the program tries to make a call to the Google Calendar API to load events for the current month, where the client and the amount that should be charged for the month's services are specified. Then it tries to send a message via WhatsApp to the client to remind them that today (notification) or within a week (pre-notification) they must make a payment for the services of the month, specifying the amount.

To automate the execution of the module every time the computer is turned on, place a shortcut to the main.py file from the root directory (for windows 10): C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.

How does the code work?

  1. Install the additional modules in your Python interpreter.
  2. Download the latest version from the repository, you can use the tags.
  3. First Boot Configurations:
  • For the program to work correctly, you must first log in to WhatsApp Web in your main browser.
  • You must also configure the operation of the Google Calendar API in your personal Google account to use it as a personal (non-deployed) project and download the access credentials in json format. At the end, rename the file to "credentials" and save it in the "modules/settings" directory of repository.
  • In the same "modules/settings" directory of the repository. There is a .txt file called "file_path", in this you must put the absolute path with the name of the file and the .xlsx extension that you want to read. In the 2nd line of the "file_path" the name of the sheet to be read is specified.
    • Note: The file must have a structure like the one shown above in the "What does this repository do?". If you want to change the column "names" you will have to modify the repository code.
  1. Run the main file from root. If this is your first time running the program, a Google tab will open to grant access permissions to the Google Calendar API for your personal account.

Important

This repository was created for academic purposes to practice automating processes with Python and to add more content to my GitHub profile. To make the code useful, the development was focused to help with the automation of tasks of a friend's Personal Trainer project (Saiyan Viking).

Current status of the project

In the future I am thinking of creating a repository for the GUI management of a simple database to pass the administration from Excel to MongoDB, at that point, I will update this repository to add the option of reading to the database.

task-automation-with-google-calendar-and-whatsapp's People

Contributors

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