class documentation

class Stream: (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method alert Undocumented
Method asn A filtered version of the "banners" stream to only return banners that match the ASNs of interest.
Method banners A real-time feed of the data that Shodan is currently collecting. Note that this is only available to API subscription plans and for those it only returns a fraction of the data.
Method countries A filtered version of the "banners" stream to only return banners that match the countries of interest.
Method custom A filtered version of the "banners" stream to only return banners that match the query of interest. The query can vary and mix-match with different arguments (ports, tags, vulns, etc).
Method ports A filtered version of the "banners" stream to only return banners that match the ports of interest.
Method tags A filtered version of the "banners" stream to only return banners that match the tags of interest.
Method vulns A filtered version of the "banners" stream to only return banners that match the vulnerabilities of interest.
Class Variable base_url Undocumented
Instance Variable api_key Undocumented
Instance Variable proxies Undocumented
Method _create_stream Undocumented
Method _iter_stream Undocumented
def __init__(self, api_key, proxies=None): (source)

Undocumented

def alert(self, aid=None, timeout=None, raw=False): (source)

Undocumented

def asn(self, asn, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the ASNs of interest. :param asn: A list of ASN to return banner data on. :type asn: string[]

def banners(self, raw=False, timeout=None): (source)

A real-time feed of the data that Shodan is currently collecting. Note that this is only available to API subscription plans and for those it only returns a fraction of the data.

def countries(self, countries, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the countries of interest. :param countries: A list of countries to return banner data on. :type countries: string[]

def custom(self, query, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the query of interest. The query can vary and mix-match with different arguments (ports, tags, vulns, etc). :param query: A space-separated list of key:value filters query to return banner data on. :type query: string

def ports(self, ports, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the ports of interest. :param ports: A list of ports to return banner data on. :type ports: int[]

def tags(self, tags, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the tags of interest. :param tags: A list of tags to return banner data on. :type tags: string[]

def vulns(self, vulns, raw=False, timeout=None): (source)

A filtered version of the "banners" stream to only return banners that match the vulnerabilities of interest. :param vulns: A list of vulns to return banner data on. :type vulns: string[]

base_url: str = (source)

Undocumented

Undocumented

Undocumented

def _create_stream(self, name, query=None, timeout=None): (source)

Undocumented

def _iter_stream(self, stream, raw): (source)

Undocumented