A python module for retrieving and parsing WHOIS data
I am having issues while parsing some domains: ``` whois_data = get_whois(domain) ``` File "/usr/local/lib/python2.7/dist-packages/pythonwhois/**init**.py", line 4, in get_whois raw_data, server_list = net.get_whois_raw(domain, with_server_list=True) File "/usr/local/lib/python2.7/dist-packages/pythonwhois/net.py", line 69, in get_whois_raw return get_whois_raw(domain, referal_server, new_list, server_list=server_list, with_server_list=with_server_list) File "/usr/local/lib/python2.7/dist-packages/pythonwhois/net.py", line 44, in get_whois_raw response = whois_request(request_domain, target_server) File "/usr/local/lib/python2.7/dist-packages/pythonwhois/net.py", line 94, in whois_request return buff.decode("utf-8") File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 1345: invalid continuation byte Looks like library is not parsing well. pythonwhois version: pip search pythonwhois pythonwhois - Module for retrieving and parsing the WHOIS data for a domain. Supports most domains. No dependencies. INSTALLED: 2.4.3 (latest) domain tested: sesise.com gcbcapp.com Trying with linux whois you can see especial characters on some text or contacts, respectively. Example for gcbapp.com: $ whois gcbcapp.com [...] Technical Contact: technical_contact_organization: Uni▒ Empresaris Hostaleria i Turisme Costa Brava technical_contact_name: Teresa Marqu▒s technical_contact_address1: Ctra. Palam▒s, km. 328
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by mariuskagc and has received 3 comments.