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

Function get_tpds

python3_cron_scripts/create_tpd_graphs.py:157–168  ·  view source on GitHub ↗

Create the list of third-party domains

(mongo_connector)

Source from the content-addressed store, hash-verified

155
156
157def get_tpds(mongo_connector):
158 """
159 Create the list of third-party domains
160 """
161 tpds_collection = mongo_connector.get_tpds_connection()
162 tpd_results = tpds_collection.find({})
163
164 tpds = []
165 for rec in tpd_results:
166 tpds.append(rec["tld"])
167
168 return tpds
169
170
171def main(logger=None):

Callers 1

mainFunction · 0.85

Calls 1

get_tpds_connectionMethod · 0.80

Tested by

no test coverage detected