Giter Club home page Giter Club logo

Comments (6)

maarten-boot avatar maarten-boot commented on June 25, 2024

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.

maarten-boot avatar maarten-boot commented on June 25, 2024

my error eth not edu ;-)

from python-whois.

maarten-boot avatar maarten-boot commented on June 25, 2024

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.

maarten-boot avatar maarten-boot commented on June 25, 2024

should be fixed in the current code now
#292

from python-whois.

maarten-boot avatar maarten-boot commented on June 25, 2024

./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.

baigreen avatar baigreen commented on June 25, 2024

Thank you ,sir

from python-whois.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.