how can information domain name (such owner name , email) using python script? i'd avoid using 3rd party web site.
is possible?
is there special modules available this.?
if knows me result. thank you
with using unix whois:
import subprocess import re def whois(ip,name): p = subprocess.popen(['whois', ip], stdout=subprocess.pipe) out, err = p.communicate() m = re.search('{}:\s+[\d\w\@\.\ ]+'.format(name), out) return m.group(0) print whois("213.180.204.3",'role') print whois("213.180.204.3",'abuse-mailbox')
output:
role: yandex llc network operations abuse-mailbox: abuse@yandex.ru
Comments
Post a Comment