Get notification of the latest episode of your current watching drama in ur telegram group.
Pulls info from "Dramacool" website.
- Any Cloud Server or Home Server (on Raspberry Pi or old pc) or anything like that. You can try it on Termux idk.
- Some basic knowledge about
linux directories
andcrontab
and.bashrc (optional)
.
- Python 3
- bs4 library
- requests library
- You can manually input drama url in
current_drama
file or use.bashrc
to add an alias. (Change /path/to/file/)
alias drama_url='/usr/bin/python /user/Path_to_folder/Drama_Notifier/url_input.py > /user/Path_to_folder/Drama_Notifier/current_drama'
- Use
BotFather
to create a bot that will get you the updates. Use this video for help.- You need to change the bot id and chat id in
notify.py
- You need to change the bot id and chat id in
- Automate the script using crontab. Runs every 5 minute. (Change /path/to/file/)
*/15 * * * * bash /user/Path_to_folder/Drama_Notifier/drama_alert.sh
- Following /path/to/file/ is to be changes as per your need.
- In
drama_alert.sh
cd /user/Path_to_folder/Drama_Notifier/
- In
notify.py
update= open('/user/Path_to_folder/Drama_Notifier/firstScrape', 'r').read()
- In
scraper.py
url = open('/user/Path_to_folder/Drama_Notifier/current_drama', 'r').read()
- In
You can use it however you want.
This was completed with the help of - https://github.com/abhayruparel/website-change-notifier