Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
pa-whois
is a python wrapper for whois api
PROMPTAPI_TOKEN
environment variable after subscription.then;
$ pip install pa-whois
Let’s try with check
endpoint:
from whois import Whois
who = Whois()
who.check('promptapi.com')
# returns dict
# {'result': 'registered', 'status': 200}
# or
check_result = who.check('promptapi.com')
print(check_result)
# {'result': 'registered', 'status': 200}
who.check('promptapi.comaaaaaaaaaaaaaaaa')
# {'error': 'TLD not supported', 'status': 400}
who.check('promptapi-testing-domain.com')
# {'result': 'available', 'status': 200}
Now, let’s try with query
endpoint:
from whois import Whois
who = Whois()
who.query('promptapi-testing-domain.com')
# {'error': 'No match for promptapi-testing-domain.com', 'status': 404}
who.query('promptapi.com')
#{'result': {'domain_name': 'PROMPTAPI.COM',
# 'registrar': 'NameCheap, Inc.',
# 'whois_server': 'whois.namecheap.com',
# 'referral_url': None,
# 'updated_date': '2020-05-27 22:19:36',
# 'creation_date': '2020-04-19 15:11:52',
# 'expiration_date': '2021-04-19 15:11:52',
# 'name_servers': ['APOLLO.NS.CLOUDFLARE.COM', 'MARJORY.NS.CLOUDFLARE.COM'],
# 'status': 'clientTransferProhibited https://icann.org/epp#clientTransferProhibited',
# 'emails': 'abuse@namecheap.com',
# 'dnssec': 'unsigned',
# 'name': None,
# 'org': None,
# 'address': None,
# 'city': None,
# 'state': None,
# 'zipcode': None,
# 'country': None},
# 'status': 200}
This project is licensed under MIT
All PR’s are welcome!
fork
(https://github.com/promptapi/whois-py/fork)branch
(git checkout -b my-feature
)commit
yours (git commit -am 'Add awesome features...'
)push
your branch
(git push origin my-feature
)This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
FAQs
Python wrapper for Prompt API's Whois API
We found that pa-whois demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.