Shodan module
- class Shodan.Shodan(config: Config)
Bases:
Shodan
Class used for reading responses from Shodan API
Initializes the client with API key provided in config file
- Parameters:
config – Config object
- get_json(*args)
- static is_security_flagged(response: dict) bool
- static read(path: str, key: str, log: Log, config: Config, cache: Cache)
Returns response from API and writes to cache
- Parameters:
path – path to API endpoint
key – key to use when writing to cache
log – Log object
config – Config object
cache – Cache object
- Returns:
response from API
- Return type:
dict | None