File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1096,3 +1096,20 @@ def domaindiscovery(self, **kwargs) -> FeedsResults:
10961096 cls = FeedsResults ,
10971097 ** kwargs ,
10981098 )
1099+
1100+ def noh (self , ** kwargs ) -> FeedsResults :
1101+ """Returns back list of the newly observed hostnames feed"""
1102+ validate_feeds_parameters (kwargs )
1103+ endpoint = kwargs .pop ("endpoint" , Endpoint .FEED .value )
1104+ source = ENDPOINT_TO_SOURCE_MAP .get (endpoint ).value
1105+ if endpoint == Endpoint .DOWNLOAD .value or kwargs .get ("output_format" , OutputFormat .JSONL .value ) != OutputFormat .CSV .value :
1106+ # headers param is allowed only in Feed API and CSV format
1107+ kwargs .pop ("headers" , None )
1108+
1109+ return self ._results (
1110+ f"newly-observed-hosts-feed-({ source } )" ,
1111+ f"v1/{ endpoint } /noh/" ,
1112+ response_path = (),
1113+ cls = FeedsResults ,
1114+ ** kwargs ,
1115+ )
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ class OutputFormat(Enum):
2828 "newly-active-domains-feed-(s3)" ,
2929 "newly-observed-domains-feed-(api)" ,
3030 "newly-observed-domains-feed-(s3)" ,
31+ "newly-observed-hosts-feed-(api)" ,
32+ "newly-observed-hosts-feed-(s3)" ,
3133 "domain-registration-data-access-protocol-feed-(api)" ,
3234 "domain-registration-data-access-protocol-feed-(s3)" ,
3335 "real-time-domain-discovery-feed-(api)" ,
You can’t perform that action at this time.
0 commit comments