Prompt API - Whois API - Python Package
pa-whois
is a python wrapper for whois api
Requirements
- You need to signup for Prompt API
- You need to subscribe whois api, test drive is free!!!
- You need to set
PROMPTAPI_TOKEN
environment variable after subscription.
then;
$ pip install pa-whois
Example Usage
Let’s try with check
endpoint:
from whois import Whois
who = Whois()
who.check('promptapi.com')
check_result = who.check('promptapi.com')
print(check_result)
who.check('promptapi.comaaaaaaaaaaaaaaaa')
who.check('promptapi-testing-domain.com')
Now, let’s try with query
endpoint:
from whois import Whois
who = Whois()
who.query('promptapi-testing-domain.com')
who.query('promptapi.com')
License
This project is licensed under MIT
Contributer(s)
Contribute
All PR’s are welcome!
fork
(https://github.com/promptapi/whois-py/fork)- Create your
branch
(git checkout -b my-feature
) commit
yours (git commit -am 'Add awesome features...'
)push
your branch
(git push origin my-feature
)- Than create a new Pull Request!
This project is intended to be a safe,
welcoming space for collaboration, and contributors are expected to adhere to
the code of conduct.