Comments (7)
-
What do you mean retrieved? Each IP address in that range?
-
Yes. Each inetnum/inet6num/NetRange starts a new section for parsing. Each one should be in the nets dict.
-
Updated is calculated from changed/Updated/etc. You can see what it is looking for in the NIC_WHOIS dictionary. It seems from your report that there may be a bug. I will look in to this.
-
This should be the case. I will check this.
I am working on the next update, and will include updates for any bugs i find from your input. Thanks.
from ipwhois.
Regarding point 1), I think @wal1ybot is referring to the fact that there are 3 AS CIDRs announced for this IP, but ipwhois returns only one of those back. e.g.:
>>> ipwhois.IPWhois("202.173.92.56").lookup()
{'asn': '23695',
'asn_cidr': '202.173.92.0/22',
'asn_country_code': 'ID',
...
It would be very useful to get all three AS CIDRs back here, in much the same way as we do for net_cidr. If Cymru's whois service is being used, which only seems to return a single AS CIDR, perhaps a new source of this data would be required?
Additionally, it seems that the asn_cidr that gets returned may occasionally change from query to query, in my experience (not often, but just enough to make comparisons difficult).
from ipwhois.
Understood. I do not know of a good/reliable Team Cymru alternative currently. Please tell me if you know of one.
If you can, please provide an example of the asn_cidr changing (screenshots preferably).
from ipwhois.
Sorry for my late reply.
Thanks @chorsley a lot to explain for me. So, @secynic, I didn't know any good alternative at this moment. If it is impossible to 'fix' it without an alternative, maybe I move (1) to another issue for later exploration?
from ipwhois.
I will fix whatever needs to be fixed per my above comments on questions 1-4. Since a more detailed alternative to Cymru may be a long term issue, please open a new issue for tracking that.
from ipwhois.
Ok, 3 & 4 were both related to the same issue. I updated the CIDR regex parsing for the NICs (except ARIN). That was a bug, and will be pushing fix soon.
from ipwhois.
Fixed in #52
from ipwhois.
Related Issues (20)
- Deprecate Python 2 support
- Pin requirements
- getting wrong asn_country_code HOT 1
- AttributeError @ line 554 in rdap.py HOT 3
- Cannot do bulk_whois on '177.104.124.235' HOT 8
- Add an option to specify the "-r" flag when querying RIPE NCC HOT 1
- AttributeError: 'NoneType' object has no attribute 'strip' HOT 1
- DeprecationWarnings HOT 1
- RDAP: Roles missing from objects, while present in entities
- BOOTSTRAP_URL is changed and last support will be until end of Feb 2021
- Compatibility with dnspython 2.0 HOT 2
- Support for multiple ASNs returned from Cymru
- ImportError: attempted relative import with no known parent package [install error]
- python 3.8 error: TypeError: unsupported operand type(s) for *: 'OpenerDirector' and 'int'
- Redis example HOT 2
- 198.97.38.0/24 no longer defined (IANA RESERVED)
- Regex for source in asn.py has a problem
- Feature Request: Allow use of ASNOrigin lookups without requiring a Net object
- Feature: Have get_bulk_asn_whois return a dictionary
- Is this project dead? HOT 3
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 ipwhois.