https://github.com/ericls/python-domainr
python wrapper for domainr
https://github.com/ericls/python-domainr
Last synced: 11 months ago
JSON representation
python wrapper for domainr
- Host: GitHub
- URL: https://github.com/ericls/python-domainr
- Owner: ericls
- License: mit
- Created: 2014-05-11T03:20:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-11T06:19:45.000Z (about 12 years ago)
- Last Synced: 2025-02-24T13:48:12.154Z (over 1 year ago)
- Language: Python
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
python-domainr
==============
python wrapper for domainr
###NOTE:
1. this tool uses Domainr's free API
2. the accuracy of availavbility is pretty low for some TLDs
3. In September 2014, you'll need an API key to use Domainr's API.
###Usage:
>>> import domainr
>>> a = domainr.domain('foo.com')
>>> a.available
>>> False
... or search available domain names with same TLD:
>>> name_list = ['foo', 'bar', 'presume-this-is-available']
>>> domainr.search_name(name_list, 'com')
>>> presume-this-is-available.com # printed
>>> ['presume-this-is-available.com'] # returned
... or search available domain names through a domain name list:
>>> domain_list = ['an-available-domain.com', 'taken-domain.cc']
>>> domainr.bulk_available(domain_list)
>>> an-available-domain.com # printed
>>> ['an-available-domain.com'] # returned
... or same name with diffrent TlDs
>>> name = 'foo'
>>> domainr.search_tld(name)
>>> ...(omitted)
... ...or specify a TLD list:
>>> name = 'foo'
>>> tlds = ['com', 'net', 'gift', 'club']
>>> domainr.search_tld(name, tlds)
>>> ...(omitted)