Comments (6)
i actually have no errors in the lattest code,
you used the latest git code or the latest pip version ?
>>> import whois
>>> d = whois.query('edu.vlaanderen')
>>> print(d.__dict__)
{'name': 'edu.vlaanderen', 'tld': 'vlaanderen', 'registrar': 'Combell nv', 'registrant_country': 'BE', 'creation_date': datetime.datetime(2015, 2, 22, 9, 34, 48), 'expiration_date': datetime.datetime(2024, 2, 22, 9, 34, 48), 'last_updated': datetime.datetime(2023, 2, 22, 9, 35, 5), 'status': 'ok https://icann.org/epp#OK', 'statuses': ['autoRenewPeriod https://icann.org/epp#autoRenewPeriod', 'ok https://icann.org/epp#OK'], 'dnssec': False, 'name_servers': ['ns3.combell.net', 'ns4.combell.net'], 'registrant': 'Registrant State/Province:', 'emails': ['[email protected]']}
from python-whois.
my error eth not edu ;-)
from python-whois.
the issue is with the existing regex in .com that does not allow for a missing date and gobbles up the next line
fixed with
"creation_date": r"Creation Date:[ \t]*([^\n]*)",
"expiration_date": r"Registry Expiry Date:[ \t]*([^\n]*)",
"updated_date": r"Updated Date:[\t ]*([^\n]*)",
testing now
from python-whois.
should be fixed in the current code now
#292
from python-whois.
./test2.py -d eth.vlaanderen
test domain: <<<<<<<<<< eth.vlaanderen >>>>>>>>>>>>>>>>>>>>
name str 'eth.vlaanderen'
tld str 'vlaanderen'
registrar str 'NETIM'
registrant_country str 'CN'
creation_date datetime.datetime 2023-03-08 17:06:28
expiration_date datetime.datetime 2024-03-08 17:06:28
last_updated NoneType None
status str 'ok https://icann.org/epp#OK'
statuses list ['addPeriod https://icann.org/epp#addPeriod', 'ok https://icann.org/epp#OK']
dnssec bool False
name_servers list ['ns1.dan.com', 'ns2.dan.com']
registrant str 'Registrant State/Province:'
emails list ['[email protected]']
from python-whois.
Thank you ,sir
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
- 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.