| 1 |
"""View all hosts for a given query.""" |
| 2 |
|
| 3 |
from censys.search import CensysHosts |
| 4 |
|
| 5 |
h = CensysHosts() |
| 6 |
|
| 7 |
# Search for hosts with a specific service |
| 8 |
query = h.search("services.service_name: FTP", per_page=1, pages=2) |
| 9 |
# View all results |
| 10 |
all_hosts = query.view_all() |
| 11 |
print(all_hosts) |