Open mrgloom opened 6 years ago
Got the same error while trying to query domain name in .group zone. Found no answers
I think you cannot pass in the full url into the function. And you cannot include protocol part of the url. So in your case, should query for ura.news
. Plus, you should use python-whois.get_whois()
for the query.
You should use get_whois
. This is a Python 3.6 error, as the response from the whois server is a byte stream and not a string then using a regex is not permitted. No clue if this was fixed by now. The library has some more issues with regex in Python 3.6 and up (I had an error in the regex preprocess in parse.py
line #205 the string was missing an extra \
in two places.
With
python-whois==0.6.8
What does
TypeError: must be str, not bytes
mean?