View Source CensysEx.Experimental (censys_ex v1.2.3)

CensysEx wrapper for the search.censys.io v2 "experimental" APIs. NOTE: these APIs are subject to change in the future and CensysEx may get out of sync with Censys

Link to this section Summary

Link to this section Functions

Link to this function

host_events(ip, per_page \\ 50, reversed \\ false, start_time \\ nil, end_time \\ nil)

View Source
@spec host_events(
  String.t(),
  integer(),
  boolean(),
  DateTime.t() | nil,
  DateTime.t() | nil
) ::
  CensysEx.result_stream(map())

Hits the Experimental Censys host events API

examples

Examples

CensysEx.Experimental.host_events("127.0.0.1")
|> Stream.take(25)
|> Stream.map(&Map.get(&1, "_event"))
|> Enum.to_list()
["service_observed", "location_updated", ...]