Giter Club home page Giter Club logo

ipq's People

Contributors

jonxslays avatar

Stargazers

 avatar

Watchers

 avatar

ipq's Issues

`-w` can fail in some cases

If the domain you are looking up is a subdomain, and also its DNS is pointed via CNAME record the call to the whois flag errors.

I'm not 100% sure how to get around this currently.

Reproduce with:

$ ipq -w www.hikari-py.dev
Traceback

Exception in thread Thread-2 (new):
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/home/jonx/.local/lib/python3.10/site-packages/ipq/models.py", line 59, in new
    self._black_magic(self._whois(host).lower())
  File "/home/jonx/.local/lib/python3.10/site-packages/ipq/models.py", line 128, in _black_magic
    setattr(self, k, self._maybe(self._rgx(v, data)))
  File "/home/jonx/.local/lib/python3.10/site-packages/ipq/models.py", line 87, in _maybe
    raise errors.InvalidWhoisData("Whois did not return valid data.")
ipq.errors.InvalidWhoisData: Error: Whois did not return valid data.

Not all domain statuses are shown

Currently only the first domain status recieved from whois is displayed.
This should be a list of strings rather than a string, and parsing should be greedy.

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.