Back to articles
How to Build a Domain Availability Checker with Python

How to Build a Domain Availability Checker with Python

via Dev.to Tutorialagenthustler

How to Build a Domain Availability Checker with Python Finding the perfect domain name is a grind. In this tutorial, we will build a Python tool that checks domain availability in bulk, suggests alternatives, and monitors expiring domains. Setup pip install python - whois requests Basic WHOIS Checker import whois import time def check_domain ( domain ): try : w = whois . whois ( domain ) if w . domain_name : return { " domain " : domain , " available " : False , " registrar " : w . registrar , " creation_date " : str ( w . creation_date ), " expiration_date " : str ( w . expiration_date ) } except whois . parser . PywhoisError : return { " domain " : domain , " available " : True } except Exception as e : return { " domain " : domain , " available " : None , " error " : str ( e )} return { " domain " : domain , " available " : True } result = check_domain ( " example.com " ) print ( result ) Bulk Checker import pandas as pd def bulk_check ( domains , delay = 1 ): results = [] for i , d

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
3 views

Related Articles