This project will send you DevOps Tasks every day.
- First of All, the structure of the Database is in JSON (JavaScript Object Notation) which looks something like this.
- Now, the flow of code is something like,
- Here, first, we'll declare the variables using the "expose". So that we do not need to use the hardcore values which will increase the Security.
Till now we're done with configuring the static database and variables we're going to use.
-
Now, let's talk about twilio_prac.py file. In this file, the question will be selected from the running JSON server and the function send_whatsapp_text will trigger the function in the twilio_conn file.
-
Now how the Question will be sent?
- Using Cron-job, in the cron.py file.
- We're using apscheduler to set the timezone and time.
- Lastly, setting the time when we want the message. That's it.