├── requirements.txt ├── admin ├── main.png └── main_uz.png ├── __pycache__ └── testing.cpython-310.pyc ├── testing.py ├── README.md ├── master.py ├── main.py └── LICENSE /requirements.txt: -------------------------------------------------------------------------------- 1 | future==0.18.2 2 | python-whois==0.8.0 3 | -------------------------------------------------------------------------------- /admin/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/domain-lookup-program-python/HEAD/admin/main.png -------------------------------------------------------------------------------- /admin/main_uz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/domain-lookup-program-python/HEAD/admin/main_uz.png -------------------------------------------------------------------------------- /__pycache__/testing.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/domain-lookup-program-python/HEAD/__pycache__/testing.cpython-310.pyc -------------------------------------------------------------------------------- /testing.py: -------------------------------------------------------------------------------- 1 | sites = [ 2 | "apple.com", 3 | "lamborghini.com", 4 | "youtube.com", 5 | "instagram.com", 6 | "github.com", 7 | "python.org", 8 | "nodejs.org", 9 | ] 10 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Domain lookup tool in Python 2 | 3 | ## Setup 4 | 5 | * pip install -r requirements.txt 6 | 7 | ## Run 8 | 9 | * python main.py (mac/linux: python3 main.py) 10 | 11 | 12 | 13 | ## Libraries 14 | 15 | * python-whois -------------------------------------------------------------------------------- /master.py: -------------------------------------------------------------------------------- 1 | import whois as w 2 | from testing import sites as s 3 | 4 | for x in s: 5 | print(f""" 6 | Saytning nomi: {x} 7 | Tegishli kompaniya: {w.whois(x).org} 8 | Tashkil topgan vaqti: {w.whois(x).creation_date} 9 | Emaili: {w.whois(x).emails} 10 | """) 11 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import whois as pywho 2 | import time as t 3 | 4 | search = input("Which domain lookup?: ") 5 | 6 | 7 | # domain name 8 | t.sleep(0.35) 9 | print(" Domain name:", search) 10 | 11 | print(''' -------------------''') 12 | 13 | # creation date 14 | print(" Company:", pywho.whois(search).org) 15 | t.sleep(0.35) 16 | 17 | print(''' -------------------''') 18 | 19 | # creation date 20 | try: 21 | for x in pywho.whois(search).creation_date: 22 | t.sleep(0.15) 23 | print(" Creation date:", x) 24 | except TypeError: 25 | print(" Creation date:", pywho.whois(search).creation_date) 26 | 27 | print(''' -------------------''') 28 | 29 | t.sleep(0.35) 30 | for content in pywho.whois(search).emails: 31 | t.sleep(0.15) 32 | print(" Emails:", content) 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Jumayev Ubaydullo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. --------------------------------------------------------------------------------