Skip to content

Commit ea9ead0

Browse files
authored
created site_connectivity.py
1 parent 669c1cd commit ea9ead0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
response = 200
3+
import urllib.request as urllib
4+
5+
def main(url):
6+
print("Checking connectivity ")
7+
8+
responce = urllib.urlopen(url)
9+
10+
print("Connected to", url, "sucessfully")
11+
print("The response code was: ", response.getcode())
12+
13+
print("This is a site connectivity checker program")
14+
input_url = input("Input he url of the site you want to check: ")
15+
16+
main(input_url)

0 commit comments

Comments
 (0)