(self, hash)
Download file
Download file
Download file
def download(self, hash):
        """
        Download file
        """
        data = self._request({'action': 'getfile', 'hash': hash})
        if "Sample not found" in data.text:
            raise MalShareNotFound()
        else:
            if "Error => Sample Missing":
                raise MalShareSampleMissing()
            else:
                return data.text
def download ( self , hash ) : data = self . _request ( { 'action' : 'getfile' , 'hash' : hash } ) if "Sample not found" in data . text : raise MalShareNotFound ( ) else : if "Error => Sample Missing" : raise MalShareSampleMissing ( ) else : return data . text