(self, key)
Initializes the API object.

        Arguments:
        key -- your API key
Initializes the API object.
Initializes the API object .
def __init__(self, key):
        """Initializes the API object.

        Arguments:
        key -- your API key

        """
        self.api_key = key
        self.base_url = 'http://www.shodanhq.com/api/'
        self.dataloss = self.DatalossDb(self)
        self.exploits = self.Exploits(self)
        self.exploitdb = self.ExploitDb(self)
        self.msf = self.Msf(self)
def __init__ ( self , key ) : self . api_key = key self . base_url = 'http://www.shodanhq.com/api/' self . dataloss = self . DatalossDb ( self ) self . exploits = self . Exploits ( self ) self . exploitdb = self . ExploitDb ( self ) self . msf = self . Msf ( self )