Site Connectivity Checker Script in Python


import urllib.request as ur

def site_connectivity_checker(url):
      
      print("Checking the status of the site", site_url)
      
      response = ur.urlopen(url)
      
      print("Successfully connected to", url)

      print("The status code of your website is",response.getcode())


print("This tool checks the status of your website")
site_url = input("Plz input your website's url: ")

site_connectivity_checker(site_url)
   

    

Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

The Basic Structure of a Full-Stack Web App

Unlocking Web Design: A Guide to Mastering CSS Layout Modes