MCPcopy Create free account
hub / github.com/adobe/Marinus / get_fld_from_value

Function get_fld_from_value

python3_cron_scripts/sonar_round_two.py:39–47  ·  view source on GitHub ↗

Get the First Level Domain (FLD) for the provided value

(value, zone)

Source from the content-addressed store, hash-verified

37
38
39def get_fld_from_value(value, zone):
40 """
41 Get the First Level Domain (FLD) for the provided value
42 """
43 res = get_fld(value, fix_protocol=True, fail_silently=True)
44 if res is None:
45 return zone
46
47 return res
48
49
50def is_tracked_zone(cname, zones):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected