Comments (5)
what is the domain? there may be multiple dates
from whois.
closing due to inactivity
from whois.
Hi there, I'm unable to reopen this, but I've found one case where this is happening which might help drive further investigation.
if I query this specific domain, I get lists of datetime objects:
In [5]: import whois
In [6]: whois.whois("communautique.quebec")
Out[6]:
{'domain_name': ['communautique.quebec', 'COMMUNAUTIQUE.QUEBEC'],
'registrar': 'TUCOWS, INC.',
'whois_server': 'whois.tucows.com',
'referral_url': None,
'updated_date': [datetime.datetime(2019, 11, 17, 16, 0, 5, 118000),
datetime.datetime(2019, 11, 17, 16, 0, 5)],
'creation_date': [datetime.datetime(2014, 11, 21, 6, 5, 4, 794000),
datetime.datetime(2014, 11, 21, 6, 5, 4)],
'expiration_date': [datetime.datetime(2024, 11, 21, 6, 5, 4, 794000),
datetime.datetime(2024, 11, 21, 6, 5, 4)],
...
In this case, the difference between the two objects in each list is just the presence or absence of microseconds.
A tiny bit unrelated but the domain_name entry is also there twice with capitalization difference.
however, super weirdly, if I query another domain in the same TLD, I get datetime objects directly:
In [7]: whois.whois("nic.quebec")
Out[7]:
{'domain_name': 'nic.quebec',
'registrar': 'PointQuébec, Inc.',
'whois_server': 'whois.nic.quebec',
'referral_url': None,
'updated_date': datetime.datetime(2020, 8, 10, 6, 18, 4, 440000),
'creation_date': datetime.datetime(2014, 1, 23, 13, 46, 27, 349000),
'expiration_date': datetime.datetime(2029, 1, 23, 13, 46, 27, 349000),
the two domains seem to be using a different whois server, so the tucows server is producing this result in this case.
from whois.
I've traced what's happening and it seems that the whois server recursing is causing the duplication. we're getting a full response from the host at 'quebec.whois-servers.net', and the response from 'whois.tucows.com' gets appended to what we've already received, thus the duplicated domain name and dates.
from whois.
when I trace what's happening with nic.quebec
, the same recuse and response duplication happens, however in that case the domain name is not capitalized in the second and the date format and content is the same, so we're not getting two distinct sets of information
from whois.
Related Issues (20)
- Unhandled time format HOT 2
- No module named imp HOT 3
- It's time to release a new version in pypi! HOT 3
- .pro domain lookups don't work HOT 6
- proposal name swap HOT 5
- add domain status HOT 4
- No module named imp HOT 4
- Missing python-dateutil dependency in package installs HOT 2
- Problem with .ru zone HOT 4
- Problem with .ai domain HOT 2
- New release on Pypi HOT 2
- Default parser does not have Registrar URL HOT 1
- An error occurred: 'module' object is not callable
- Expiration date for .com.ua zone is a string instead of datetime HOT 1
- the sg domain not Expiry Date HOT 1
- Issue with .ai HOT 2
- Handling invalid creation_date format for some domains HOT 1
- .live domain is not resolving
- Library returns multiple timestamps per field, have no idea what it means HOT 1
- Rate limit 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 whois.