Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- from urllib.request import urlopen
- except ImportError:
- from urllib2 import urlopen
- domainName = 'google.com';
- apiKey = '<Token>'
- url = 'https://www.whoisxmlapi.com/whoisserver/WhoisService?'\
- + 'domainName=' + domainName + '&apiKey=' + apiKey + "&outputFormat=JSON"
- print(urlopen(url).read().decode('utf8'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement