We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc75487 + 694fa9c commit 94b89e0Copy full SHA for 94b89e0
src/ipmaster/entry.py
@@ -0,0 +1,10 @@
1
+import socket
2
+from urllib.parse import urlparse
3
+try:
4
+ WebpageLink = input()
5
+ url = 'http://www.example.com/site/section1/VAR1/VAR2'
6
+ WebpageLink = urlparse(url).netloc
7
+ IP_addres = socket.gethostbyname(WebpageLink)
8
+ print("IP Address is:" + IP_addres)
9
+except:
10
+ print("error occured")
0 commit comments