November 28, 2022 • 3 min read • 438 words
This article will show you how to monitor a website for changes. This is useful if you want to be notified when a website changes, for example, when a new blog post is published, a black friday sale starts, or an item is back in stock.
Open Telegram and search for @BotFather
Send /newbot
to @BotFather
Enter a name for your bot
Enter a username for your bot
Copy the token that @BotFather
gives you
Open Telegram and search for @userinfobot
Send /start
to @userinfobot
Send /my_id
to @userinfobot
Copy the chat id that @userinfobot
gives you
docker-compose.yml
with the following content:version: "3.9"
volumes:
data:
services:
changedetection:
image: dgtlmoon/changedetection.io:dev
container_name: changedetection
hostname: changedetection
volumes:
- data:/datastore
environment:
- PORT=5000
- PUID=1000
- PGID=1000
- WEBDRIVER_URL=http://browser-chrome:4444/wd/hub
- PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/?stealth=1&--disable-web-security=true
- BASE_URL=http://localhost:5000
restart: unless-stopped
ports:
- 5000:5000
browser-chrome:
hostname: browser-chrome
image: selenium/standalone-chrome-debug:3.141.59
environment:
- VNC_NO_PASSWORD=1
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1080
- SCREEN_DEPTH=24
volumes:
- /dev/shm:/dev/shm
restart: unless-stopped
playwright-chrome:
hostname: playwright-chrome
image: browserless/chrome
restart: unless-stopped
environment:
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1024
- SCREEN_DEPTH=16
- ENABLE_DEBUGGER=false
- PREBOOT_CHROME=true
- CONNECTION_TIMEOUT=300000
- MAX_CONCURRENT_SESSIONS=10
- CHROME_REFRESH_TIME=600000
- DEFAULT_BLOCK_ADS=true
- DEFAULT_STEALTH=true
docker-compose up -d
http://localhost:5000
URL
fieldClick Edit > Watch
Under time between checks, select your preferred interval
Under the Request
tab, set Fetching method
to Playwright Chromium/Javascript via 'ws://playwright-chrome:3000/?stealth=1&--disable-web-security=true'
and Wait seconds before extracting text
to a number higher than 15
Under the Notifications
tab, enter the Telegram chat id and token you copied earlier as the following format:
tgram://<token>:<chat-id>
Save
You should now receive a notification when the website changes.
In this article, you learned how to monitor a website for changes. This is useful if you want to be notified when a website changes, for example, when a new blog post is published, a black friday sale starts, or an item is back in stock.
Website created by Yassine Fathi © 2023
Built with Next.js & Hosted in my Homelab