Don't want to keep looking at websites? This script will do it for you.
Well, sometimes you are eager to know what happens to your request, your property, or even your lawsuit. But, then, the only way to know "electronically" is via keep looking at the websites.
I'm lazy, and that's why I created a "simple" script to do it for me.
You need:
- A computer/server running Linux-based OS continuously. I use Linux Mint. Pi should be okay I guess.
- A Telegram account and a bot.
- Install Python 3
- Install required libs and create folders:
pip install facebook_scraper pyquery python-dotenv asyncio requests playwright
playwright install
mkdir -p /etc/projects/webscrape_noti && mkdir -p /var/projects/webscrape_noti
- Copy
webscrape_noti.py
to/usr/local/bin
. - Get your Telegram Bot ID, its credential, and your chat room ID.
- Setup
.env
file by creating/etc/projects/webscrape_noti/.env
file fromsample.env
- For some reason, the
coj.go.th
domain does not register its certificate properly. Copy their web certificate to/etc/projects/webscrape_noti/coj.go.th.pem
. - Test run:
python3 /usr/local/bin/webscrape_noti.py
. - Set up cron to run this command:
python3 /usr/local/bin/webscrape_noti.py >> /var/projects/webscrape_noti/cron.log 2>&1
See LICENSE
I use this program for my personal benefit. So, you may fork and stuff; I might not accept your PR if it does not fit my personal interest though.