Whois registrations can be searched based on the name of the registering organization. This will add a company name to the list of organizations that will be searched. This is saved in the config collection.
(mongo_connector, org)
| 314 | |
| 315 | |
| 316 | def add_whois_org(mongo_connector, org): |
| 317 | """ |
| 318 | Whois registrations can be searched based on the name of the registering organization. |
| 319 | This will add a company name to the list of organizations that will be searched. |
| 320 | This is saved in the config collection. |
| 321 | """ |
| 322 | config_collection = mongo_connector.get_config_connection() |
| 323 | now = datetime.now() |
| 324 | |
| 325 | print("Adding Whois Org: " + org) |
| 326 | config_collection.update_many( |
| 327 | {}, {"$addToSet": {"Whois_Orgs": org}, "$set": {"updated": now}} |
| 328 | ) |
| 329 | |
| 330 | |
| 331 | def add_whois_name_server(mongo_connector, name_server): |
no test coverage detected