Giter Site home page Giter Site logo

website_updates_checker's Introduction

Web Page Update Checker

This Python script allows you to monitor a web page for updates and receive notifications on Telegram when changes are detected.

Introduction

The Web Page Update Checker is a Python script that allows you to automate the process of monitoring a web page for updates. Instead of checking for updates manually, this script uses hashing to compare the current version of a web page with its previous version. If changes are detected, the script sends notifications to your Telegram account, making it easier to stay up-to-date with changes to the web page.

Problem

I created this script to address a specific need I had: to monitor a school website where I wanted my son to attend. In order to be considered for admission, we needed to add his name to the waiting list on the website. However, there was no clear indication of when this list would become available.

With this script, I was able to automate the process of checking the website for updates and receive notifications when the waiting list became available.

Requirements

To run this script, you need to have Python 3 installed on your system. You also need the following Python libraries:

  • requests
  • hashlib

You can install these libraries using pip:

pip install requests
pip install hashlib

Libraries used

This script uses the following libraries:

  • requests: A library for making HTTP requests in Python.
  • hashlib: A library for computing hash digests of data in Python.

Usage

  1. Clone or download this repository to your local machine.

  2. Create the file credentials.json with the following parameters:

    {
        "url_to_check": "https://yourwebsite.com",
        "token": "your_telegram_token",
        "chat_id": "you_telegram_chat_id"
    }
    

    See this article for more information

  3. Open a terminal or command prompt and navigate to the directory containing the web_page_update_checker.py file.

  4. Run the script by entering the following command:

python web_page_update_checker.py

The script will start monitoring the web page for updates and will send notifications to your Telegram account when changes are detected.

website_updates_checker's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.