Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for .AI, .SITE, .DESIGN parsers #258

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

hedgieinsocks
Copy link
Contributor

  • Add status field regex to .AI parser
Python 3.13.0 (main, Oct  8 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> w = whois.whois('tech.ai')
>>> w.status
'clientTransferProhibited https://icann.org/epp#clientTransferProhibited'
  • Fix expiration date regex for .SITE and .DESIGN parsers
Python 3.13.0 (main, Oct  8 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> w = whois.whois('good.design')
>>> w.expiration_date
datetime.datetime(2025, 12, 14, 18, 47, 53)
>>> w = whois.whois('secure.site')
>>> w.expiration_date
datetime.datetime(2025, 8, 2, 23, 59, 59)

@richardpenman
Copy link
Owner

Thanks! This change affects unit tests, which need to be updated. Unit tests can be run with python -m pytest.

@richardpenman richardpenman merged commit fb31b69 into richardpenman:master Jan 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants