Export Search Results

Censys makes it easy to query the entire Internet for very specific data. While you cannot export the results of a query directly from the Legacy Search UI, you can use the CLI Tool to export results.

For example, after you install the CLI Tool, run a command like this to print the first 50 hosts matching your query to the screen:

from censys.search import CensysHosts

h = CensysHosts()

query = h.search ("services.service_name: HTTP", per_page=50, pages=1)
print(query.view_all())

You can find the full documentation for the CLI module here.