ruia/spider.py
async def process_callback_result(self, callback_result):
        """
        Corresponding processing for the invalid callback result
        :param item:
        :return:
        """
        callback_result_name = type(callback_result).__name__
        process_func_name = self.callback_result_map.get(
            callback_result_name, '')
        process_func = getattr(self, process_func_name, None)
        if process_func is not None:
            await process_func(callback_result)
        else:
            raise InvalidCallbackResult(
                f'<Parse invalid callback result type: {callback_result_name}>'
            )
async def process_callback_result(self, callback_result):
        """
        Corresponding processing for the invalid callback result
        :param item:
        :return:
        """
        callback_result_name = type(callback_result).__name__
        process_func_name = self.callback_result_map.get(
            callback_result_name, '')
        process_func = getattr(self, process_func_name, None)
        if process_func is not None:
            await process_func(callback_result)
        else:
            raise InvalidCallbackResult(
                f'<Parse invalid callback result type: {callback_result_name}>'
            )
async def process_callback_result ( self , callback_result ) : callback_result_name = type ( callback_result ) . __name__ process_func_name = self . callback_result_map . get ( callback_result_name , '' ) process_func = getattr ( self , process_func_name , None ) if process_func is not None : await process_func ( callback_result ) else : raise InvalidCallbackResult ( f'<Parse invalid callback result type: {callback_result_name}>' )
Corresponding processing for the invalid callback result
        :param item:
        :return:
Corresponding processing for the invalid callback result : param item : : return :