☰
Debian Codegraph
@
2.3.0-2
2.3.0-1
2.2.19-2
/
/
examples
/
search
/
bulk_view_hosts.py
☽
☼
examples/search/bulk_view_hosts.py
code
plain
raw
Apache-2.0
2023-2024 Censys, Inc. <
[email protected]
>
debian/copyright
1
"""Bulk IP Lookup Example."""
2
3
from censys.search import CensysHosts
4
5
h = CensysHosts()
6
7
IPS = [
8
"1.1.1.1",
9
"1.1.1.2",
10
"1.1.1.3",
11
]
12
13
hosts = h.bulk_view(IPS)
14
print(hosts)
15
# {
16
# "1.1.1.1": {...},
17
# "1.1.1.2": {...},
18
# "1.1.1.3": {...},
19
# }