Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.17 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.17 KB

nowYouSeeMe

A CLI tool writen in Python to check if a site is up or down.

System requirements

  • Python > 3.1
  • unix terminal (i.e. bash)

Installation

Open a Terminal

~ ❯❯❯ git clone https://github.com/georgelivas/nowYouSeeMe
~ ❯❯❯ cd nowYouSeeMe/
~/nowYouSeeMe  sh nysm.sh

Code

import socket

def can_you_see(url):
    try:
        socket.create_connection((url, 80))
        print(Colors.OKGREEN + "Everything looks good with " + url)

    except OSError:
        pass
        print(Colors.Red + "Something's wrong with " + url)


can_you_see(input(Colors.OKBLUE + "Enter an URL:"))

I am developing this project in order to learn python. More features will come soon.

You may also like

Project Description
CodeGen A Java indenter for the 21st century.
Codyfier A lightweight, secure, and cross-platform, password generator.

Licence

This project is licensed under the MIT License - see the LICENSE file for details