Debian Codegraph @

examples/search/metadata_hosts.py

raw
1 """Metadata on the hosts index."""
2
3 from censys.search import CensysHosts
4
5 h = CensysHosts()
6
7 # Fetch metadata about hosts.
8 meta = h.metadata()
9 print(meta)
10 # {
11 # "services": [
12 # "DNS",
13 # "FTP",
14 # "HTTP",
15 # "POP3",
16 # "SMTP",
17 # "SSH",
18 # ...
19 # ]
20 # }