Skip to content

Commit

Permalink
Merge pull request #5 from komand/df-3782
Browse files Browse the repository at this point in the history
Update TLD list
  • Loading branch information
gusingh-r7 authored Jan 22, 2020
2 parents 4ace5e6 + 2dc2797 commit 26e1787
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='python-whois-extended',
version='0.6.11',
version='0.6.12',
description='Python module/library for retrieving WHOIS information of domains. Able to extract data for all the popular TLDs (com, net, org, uk, pl, ru, lv, jp, co_jp, de, at, eu, biz, info, name, us, co, me, be, nz, cz, it, fr, kg, vc, fm, tv, edu, ca)',
long_description=open('README').read(),
author='Andrew Minkin and DDarko.org',
Expand Down
2 changes: 2 additions & 0 deletions whois/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def query(domain, host=None, force=0, cache_file=None, slow_down=0, ignore_retur
tld = 'co_jp'
elif domain.endswith('.рф') or domain.endswith('.xn--p1ai'):
tld = 'ru_rf'
elif domain.endswith('.in'):
tld = 'IN'
else:
tld = d[-1]

Expand Down
4 changes: 4 additions & 0 deletions whois/tld_regexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,10 @@
immo = {
'extend': 'com',
}
#Using "IN" as "in" is a keyword in python
IN = {
'extend': 'com',
}
industries = {
'extend': 'com',
}
Expand Down

0 comments on commit 26e1787

Please sign in to comment.