Tell me how to make a request from Python 3 to find out if a domain is free or busy?

I tried these methods, but they did not work:

s = 'domaim.ru' m = os.system("whois %s" % s) print(m) m = whois.whois(s) print(m) 
  • Check whether domain is registered . Thank. - Sasha Chernykh
  • one
    What are your difficulties with these solutions? "did not work" - not informative: what did you expect to receive and what is happening instead? - jfs

0