Skip to content

Censys annotator improvement - strip off result[resource[...]] from Censys response#67

Open
phillip-stephens wants to merge 1 commit intomainfrom
phillip/censys-enrichment-improve
Open

Censys annotator improvement - strip off result[resource[...]] from Censys response#67
phillip-stephens wants to merge 1 commit intomainfrom
phillip/censys-enrichment-improve

Conversation

@phillip-stephens
Copy link
Copy Markdown
Contributor

Previously, the censys annotator always included a dictionary -
censys: { result: {resource: {actual data here}}}

This strips those two outer layers to make it easier to deal with:
censys: {actual data here}

If Censys changes the format (and we cannot strip off the result{resource{}} without error), we'll just fall back to the old approach of returning the exact text Censys returns.

@phillip-stephens phillip-stephens marked this pull request as ready for review April 11, 2026 05:24
@phillip-stephens phillip-stephens requested a review from zakird April 11, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants