Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

This script is hosted in the cloud and runs on a scheduled basis to scrape exam news information from the National University (NU) website and save it to a database. It then compares the scraped news with the previous ones stored in a database and sends an email if there are new updates related to the exam, sparing unnecessary notifications.

itsmacr8/python-bot

Repository files navigation

Python scripts(bots) that are hosted in the cloud to run on a scheduled basis

How does it work?

  • Make a simple flask application and place the script in a route.

  • Connect the repo with Heroku or a similar platform.

  • If you are a Heroku verified user, you could use this addon. You need to add a credit card to verify your account.

  • Create a new account on WayScript

  • Create a liar that is preset with the Python Cron Job template.

  • The default file will be tasks.py. Use the requests module to make a get request to the route where you have placed your script in step 1.

  • Create the requirements.txt file in the root directory and add the requests module.

  • Open the trigger file and add the time when you want to run the tasks.py file. Visit CrontabGuru if you do not know how to schedule a task with a cron.

  • Finally, deploy the liar.

PS. If you do not deploy your liar, the trigger file will not run

About

This script is hosted in the cloud and runs on a scheduled basis to scrape exam news information from the National University (NU) website and save it to a database. It then compares the scraped news with the previous ones stored in a database and sends an email if there are new updates related to the exam, sparing unnecessary notifications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published