examples/asm/search.py
raw| 1 | """Execute a saved query by ID.""" |
| 2 | |
| 3 | from censys.asm import InventorySearch |
| 4 | |
| 5 | # Create an instance of the SavedQueries class |
| 6 | inventory_search = InventorySearch() |
| 7 | |
| 8 | # Delete the saved query by ID |
| 9 | query = "host.services.service_name: HTTP" |
| 10 | res = inventory_search.search(query=query) |
| 11 | |
| 12 | print(res) |