Skip to content

Commit 279d488

Browse files
committed
added dynamic asn education-kind check
1 parent b59fb0e commit 279d488

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/riskdb/builder/obj/asn.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
ASN_FIND = {
99
'hosting': ['host', 'cloud', 'server', 'datacenter', 'data center'],
1010
'isp': ['tel', 'mobil'],
11+
'education': [
12+
'university', 'universitat', 'universitaris', 'universitaet', 'universities',
13+
'uniwersytet', 'academic', 'institute of technology', 'college',
14+
],
1115
}
1216

1317

@@ -24,6 +28,9 @@ def _extend_asn_org_kinds(kind: list, info: dict) -> list:
2428
if 'hosting' not in kind and _is_asn_org_kind(org=info['org'], kind='hosting'):
2529
kind.append('hosting')
2630

31+
if 'education' not in kind and _is_asn_org_kind(org=info['org'], kind='education'):
32+
kind.append('education')
33+
2734
if len(kind) == 0 and _is_asn_org_kind(org=info['org'], kind='isp'):
2835
kind.append('isp')
2936

0 commit comments

Comments
 (0)