{"id":13988542,"url":"https://github.com/warneat/website-change","last_synced_at":"2025-07-22T09:31:17.029Z","repository":{"id":196601990,"uuid":"402203968","full_name":"warneat/website-change","owner":"warneat","description":"get notified when website changes","archived":false,"fork":false,"pushed_at":"2024-07-20T20:50:17.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-29T07:36:47.071Z","etag":null,"topics":["change","change-detection","enrollment","university","university-course","website"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/warneat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-01T21:10:04.000Z","updated_at":"2024-09-28T12:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"209e234c-1585-416c-b9a0-567ece1c93c0","html_url":"https://github.com/warneat/website-change","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"de83ea2e7afee8fca20acd2519d86c3685dd5ec6"},"previous_names":["warneat/website-change"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/warneat/website-change","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warneat%2Fwebsite-change","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warneat%2Fwebsite-change/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warneat%2Fwebsite-change/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warneat%2Fwebsite-change/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warneat","download_url":"https://codeload.github.com/warneat/website-change/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warneat%2Fwebsite-change/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465059,"owners_count":23933052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["change","change-detection","enrollment","university","university-course","website"],"created_at":"2024-08-09T13:01:13.502Z","updated_at":"2025-07-22T09:31:16.741Z","avatar_url":"https://github.com/warneat.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## website-change\n\n(tl;dr)\nget notified, when website changes.\n\n\n**This script regularly requests a webpage's content (while also handling a basic authentication) and then compares how often a certain substring occurs. If the number of occurencies differ from status quo, it will give you a notification-message via Telegram.**\n\n\n## Installation and Configuration\n\n#### In terminal:\n\n\nIf necessary, install the python package-manager 'pip3':\n\n\t$sudo apt update\n\t\n\t$sudo apt install python3-pip\n\t\nClone this repository:\n\n\t$git clone https://github.com/warneat/website-change\n\nTo install required Packages, cd into the new directory and run install requirements\n\t\n\t$cd website-change\n\t\n\t$pip3 install -r requirements.txt\n\t\n\n### Create a Telegram Bot:\n#### On your smartphone:\nTalk to Botfather to create a new bot: https://telegram.me/BotFather\n\t\nSend him:\n\n\t/newbot\n\nChoose a name and a username for your bot.\nBotfather will give you the API-Token to access and control your bot.\n\n#### In terminal:\nTo configure telegram-send:\n\n\t$telegram-send --configure\n\t\nIf prompted, add the location where pip3 installed the python modules and packages to PATH (adjust for your environment; the output of the pip-installation probaply gave you a hint)\n\n\t$export PATH=/home/pi/.local/bin:$PATH\n\nYou will be asked for the API-Token. Enter it.\nOpen the url and send the given password to the bot.\n\n### Finally\nSet your config variables `URL`, `USER`, `PWRD`, `SUBSTRING`, and `SLEEP_SECONDS` at the beginning of the python script with your desired editor. Make sure to insert the whole URL, as your browser might hide something after a \"?\"\n\n\t\n**There you have it!** \n\n**Run the script with** `$python3 website_change.py` **or** (after making i executable with `chmod +x website_change.py`): `$./website_change.py`**.\nI highly recommend, using a cronjob on startup (see below)**\n\nUnfortunately, the message 'running...' does not mean, it is working (yet). To get some insight in what is being requested, run `$./website_change_show.py` for a human-readable version in your command-prompt.\n\n\n### Further reading:\n\nTo start the script automatically and keep it running without an open terminal window consider using cronjob on startup with a little delay: \n\n\t$crontab -e\n\t\nFor example on a Raspberry Pi add this line at the bottom:\n\n\t@reboot sleep 20 \u0026\u0026 /home/pi/website-change/website_change.py \u003e /dev/null 2\u003e\u00261\n\nOtherwise you might want to use screen ([ultra-quick tutorial](https://linuxize.com/post/how-to-use-linux-screen/)) via ssh, to keep process running in the background.\n\n\n### TODO:\n- Improve security, e.g do not store password in python script, as it is basically a text file:\n\t- add configuration dialog?\n\t- gain more knowledge about config-files.\n\t- use cloud solution as a capsule? (virtual machine)\n- An alternative module with more features 'python-telegram-bot' is now available. \u003eImplement?\n- Add feature to request a status message or interact in some way.\n\n#### Feedback is very much apprechiated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarneat%2Fwebsite-change","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarneat%2Fwebsite-change","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarneat%2Fwebsite-change/lists"}