Spaces:
No application file
No application file
Download src/core/normalize.py from abello/OSINT: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/abello/OSINT/resolve/main/src/core/normalize.py
- Command line
-
hf download hf://spaces/abello/OSINT/src/core/normalize.py
-
curl -L -o normalize.py https://huggingface.co/spaces/abello/OSINT/resolve/main/src/core/normalize.py
319 Bytes
| def normalize_intelx_data(raw): | |
| return [{"source": "intelx", "value": r} for r in raw.get("records", [])] | |
| #def normalize_shodan_data(raw): | |
| return [{"source": "shodan", "value": r} for r in raw.get("matches", [])] | |
| def normalize_virustotal_data(raw): | |
| return [{"source": "virustotal", "value": raw}] | |