Code Monkey home page Code Monkey logo

webmon's Introduction

webmon

version Stories in Ready PyPI version

A tool that allows you to point to a number of different URLS and have it take screenshots and listen for differences over time.

This is intended to run as a CLI, that takes a searches parent directories until it finds a configuraiton file.

Setup

cd into the directory where you want the repo to go.

Run:

git clone https://github.com/mc706/url_check

To setup the repo, make sure you have python and pip installed. If you dont have pip install here.

Once you have pip, run:

pip install -r requirements.txt

Edit the URLS list in check.py to be the list of URLS you need to check.

Run:

python check.py

How it works

The check.py command has 3 steps.

The project uses selenium using splinter to control the Firefox. It visits the websites in URLS and takes screenshots and saves them to screenshots/.

The second step takes the root square mean difference of the historgrams of each pair of screenshots already in the screenshots directory. It then calculates the average and the standard deviation of the rms. It then compares the last screenshot in the directory to the current screenshot and marks it changed if it falls outside of the standard devation. Note: due to the size of the calculation of every pair of screenshots, the length of this step tends to go up exponentially, per website. To shorten this, I have it taking the last 10 samples only. This can be adjusted for accuracy in the SAMPLES variable.

The last step reports which of the urls have deviated too much and by how much.

webmon's People

Contributors

mc706 avatar waffle-iron avatar

Watchers

 avatar  avatar

webmon's Issues

Remove Redundant RMS checks

The check runs as a double for loop, which means every check get run twice, making the calcuation period very long

Return Non Zero

Return a non zero status when errors are deviations are found

Readme.md

Tge readme contains things I can not understand / find. There is no check.py. What is wrong?

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.