Comments (3)
Thanks for raising this.
Currently, .ca isn't supported.It's on the todo list.
from python-whois.
# -*- coding: utf-8 -*-
import whois
new_tld = {
'ca': {
'creation_date': re.compile('Creation Date:\\s?(.+)', re.IGNORECASE),
'domain_name': re.compile('Domain Name:\\s?(.+)', re.IGNORECASE),
'emails': re.compile('[\\w.-]+@[\\w.-]+\\.[\\w]{2,4}', re.IGNORECASE),
'expiration_date': re.compile('Expiration Date:\\s?(.+)', re.IGNORECASE),
'name_servers': re.compile('Name Server:\\s*(.+)\\s*', re.IGNORECASE),
'registrant': None,
'registrar': re.compile('Registrar:\\s?(.+)', re.IGNORECASE),
'status': re.compile('Domain Status:\\s?(.+)', re.IGNORECASE),
'updated_date': re.compile('Updated Date:\\s?(.+)', re.IGNORECASE)
}
}
whois.TLD_RE.update(new_tld)
domain = 'invisiblebracesintoronto.ca'
response = whois.query(domain, 'A')
from python-whois.
.ca working
import whois
domain = whois.query('invisiblebracesintoronto.ca')
print(domain.dict)
{'name': 'invisiblebracesintoronto.ca', 'registrar': 'Go Daddy Domains Canada, Inc', 'registrant_country': 'REDACTED FOR PRIVACY', 'creation_date': datetime.datetime(2013, 10, 4, 16, 27, 42), 'expiration_date': datetime.datetime(2021, 10, 4, 16, 27, 42), 'last_updated': datetime.datetime(2020, 11, 18, 16, 33, 19), 'status': 'clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited', 'statuses': ['clientTransferProhibited https://icann.org/epp#clientTransferProhibited', 'clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited', 'clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited'], 'dnssec': False, 'name_servers': {'dns1.stabletransit.com', 'dns2.stabletransit.com'}}
from python-whois.
Related Issues (20)
- FileNotFoundError: [Errno 2] No such file or directory: 'whois': 'whois' HOT 3
- Module doesn't work in python 3.5.3 HOT 3
- The pypi version is not same as the github version (0.9.27), has "we have " prompt under _0_init_tld.py HOT 7
- org.uk, gov.uk need fixed HOT 6
- fyi HOT 1
- Support for additional missing TLDs (.gt, .my, .za, .ch) HOT 4
- Most new registered domains has no updated time, Parse error HOT 6
- any idea about adding params: available, expired, pendingDelete HOT 5
- Code in documentation didn't work HOT 2
- .se updated date parsing error HOT 2
- I think a try-except would be better when trying more details. HOT 6
- Whois on IP HOT 3
- status whois on pipy HOT 1
- Check if domain is available, not available or in redemption period HOT 8
- cmd parameter not being passed to do_query() HOT 2
- Proposal to Archive the repo HOT 11
- Add a redis cache HOT 3
- Can't fetch domain info in .ag zone. HOT 4
- unable to lookup .pro domains HOT 4
- Can I do unlimited requests? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-whois.