Debian Codegraph @

examples/README.md

raw
1 # Examples
2
3 Examples for using the Python Library.
4
5 ## Imports
6
7 For our package import statements are structured like this.
8
9 ### Search
10
11 ```python
12 # Access all indexes
13 from censys.search import SearchClient
14
15 # Access only the hosts index
16 from censys.search import CensysHosts
17
18 # Access only the certificates index
19 from censys.search import CensysCerts
20 ```
21
22 ### ASM
23
24 ```python
25 from censys.asm import AsmClient
26 ```
27
28 ## Available Examples
29
30 ### Search Examples
31
32 - [Using `SearchClient`](search/search_client.py)
33
34 #### Hosts Index
35
36 - [View Host](search/view_host.py)
37 - [Search Hosts](search/search_hosts.py)
38 - [Aggregate Hosts](search/aggregate_hosts.py)
39 - [Bulk View Hosts](search/bulk_view_hosts.py)
40 - [Hosts Metadata](search/metadata_hosts.py)
41 - [View Host Events](search/view_host_events.py)
42 - [View Host Names](search/view_host_names.py)
43 - [View Host Diff](search/view_host_diff.py)
44
45 #### Certificates Index
46
47 - [View Certificate](search/view_cert.py)
48 - [Search Certificates](search/search_certs.py)
49 - [Report Certificates](search/report_certs.py)
50
51 ### ASM Examples
52
53 - [Get Cloud Host Counts](asm/cloud_host_count.py)
54 - [Get Host Ricks](asm/get_host_risks.py)
55 - [Get Domains and Subdomains](asm/get_subdomains.py)
56 - [Add Seeds in Bulk (from CSV)](asm/add_seeds_bulk.py)