Coder Social home page Coder Social logo

17_sites_monitoring's Introduction

Sites Monitoring Utility

This script is a site monitoring helper. It cares about two things:

  1. Check if your url responds with 200 status
  2. Check if you domain prepaid at least for 1 month

Script takes a path to file with urls (1 per line) - that's required param. Reads urls and check information for every url.

Script uses external packages. You can install them with

pip3 install -r requirements.txt

Example of usage:

$ python3 check_sites_health.py test.txt
List contains 5 domain(s)
+------------------------------------+-----------------------------+---------------------+------------+---------------------------------------+
| URL                                | Domain                      | Prepaid for a month | Status 200 | Notes                                 |
+------------------------------------+-----------------------------+---------------------+------------+---------------------------------------+
| http://ya.ru                       | ya.ru                       | No                  | Yes        | Error with connection to whois server |
| https://tut.by/about               | tut.by                      | No                  | No         | Error with connection to whois server |
| http://xxxx                        | xxxx                        | No                  | No         | Error with connection to whois server |
|                                    |                             |                     |            | Error with connection to server       |
| http://some_non-existing.domain.ru | some_non-existing.domain.ru | No                  | No         | Error with connection to whois server |
| xys://some-dummy-url.ru            | some-dummy-url.ru           | No                  | No         | Error with connection to whois server |
|                                    |                             |                     |            | Invalid schema                        |
+------------------------------------+-----------------------------+---------------------+------------+---------------------------------------+

Project Goals

The code is written for educational purposes. Training course for web-developers - DEVMAN.org

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.