This bot scrapes KTU Website and publishes a new post at KTU Notifications telegram channel.
Consider placing a ⭐ for this repo 😄.
Instances: 3(known)
Total Subscriber Count including derivatives: 17500+
Links:
- KTU Notifications This is maintained by me and contains no Ads.
- KTU Official Notification System
- Ktu study materials
Polling frequently can harm the site, and consume bandwidth of the original site.
Before you start with this repository, please make sure that you have installed python3 and postgresql. If not run the following command if you are on Linux or refer respective documentation of your distribution.
sudo apt-get install postgresql python3
- Clone the repo to your local machine.
git clone https://github.com/tupio/ktu-notification-bot.git
- Change to
ktu-notification-bot
directory.
cd ktu-notification-bot
- Run the following command to install dependencies.
pip install -r requirements.txt
- Add environmental variables
Replace the contents in angled brakets with appropriate values.
export DATABASE_URL=postgres://$(whoami)
export PRIVATE_ID=<Enter your telegram ID(This is a number and is not your username or phonenumber)>
export CHANNEL_ID=<Add your channel ID here(give private id if only for private use)>
export STATUS=<DEBUG/RELEASE>
export BOT_ID=<your bot id here>
-
Create a table with the name
hashes
with one column. -
Run the bot using
python scrapper.py
I like this bot to be a community-driven and non-profit, hence I can't do it alone. An active contribution in terms of the following can be given.
The bot requires a huge improvement both in terms of efficiency and functionality.
- Add guides for different aspects.
- Add a personal notification feature.
- Increase reliability in terms of delivering notifications.
It has been observed that there are many similar ideas of non-profit contributions like bots and channels all over the place. Consider merging it under one umbrella.
You could support by joining this channel, add this bot to your group or channel(pull a request or ping me with your group/channel id after adding to the same.)
I'm currently limited to the free quota of the server to maintain the system. You could donate to me to upgrade to a paid server thus making room for further development. All the donator names will be mentioned on this page.
This project is under MIT License. Use for educational purposes only.