Create the list of third-party domains
(mongo_connector)
| 155 | |
| 156 | |
| 157 | def 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 | |
| 171 | def main(logger=None): |
no test coverage detected