Coder Social home page Coder Social logo

jsnotify's Introduction

JSNotify

This script monitors specified JavaScript files for changes. When a change is detected, it sends a notification via Telegram with a detailed comparison of the changes.

Features

  • Monitors JavaScript files for changes
  • Sends notifications through Telegram with detailed change logs
  • Highlights significant changes for easy identification

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x installed on your system
  • A Telegram bot and chat ID (Instructions below on how to obtain these)
  1. Clone the repository:
    git clone https://github.com/leetIbrahim/JSNotify.git
  2. Install the required Python packages:
    pip install -r requirements.txt

Configuration

  1. Create a .env file in the root directory of the project with the following content:
    TELEGRAM_TOKEN=[Your_Telegram_Bot_Token]
    TELEGRAM_CHAT_ID=[Your_Telegram_Chat_ID]

Replace [Your_Telegram_Bot_Token] and [Your_Telegram_Chat_ID] with your actual Telegram bot token and chat ID.

  1. To obtain a Telegram bot token and chat ID , follow the instructions provided here.

Usage

  1. Prepare a text file containing the URLs of the JavaScript files you want to monitor, one URL per line.

  2. Run the script and follow the prompts:

    python3 monitor.py
    
  3. Enter the path to your file containing the URLs when prompted.

    https://example.com/main.js
    https://example.com/app.js
    
  4. The script will monitor these URLs and send notifications via Telegram if any changes are detected.

Example Notification

Below is an example of what the notification looks like:

Alt Text

Follow me on Twitter @leetibrahim for updates.

jsnotify's People

Stargazers

 avatar Alam avatar cocoonk1d avatar Michael Cade avatar Ihebski avatar Utsav Singh avatar  avatar Tom van Ommen avatar farhan nadim pial avatar zhifan avatar AADII avatar A avatar SGT avatar Hassn avatar Jaikishan Tulswani avatar Mohanad Hesham avatar Nightmare avatar

Watchers

Nightmare 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.