(self, item, response, spider)
return {
            'level': logging.DEBUG,
            'msg': SCRAPEDMSG,
            'args': {
                'src': src,
                'item': item,
            }
        }
Logs a message when an item is scraped by a spider.
Logs a message when an item is scraped by a spider.
Logs a message when an item is scraped by a spider .
def scraped(self, item, response, spider):
        """Logs a message when an item is scraped by a spider."""
        if isinstance(response, Failure):
            src = response.getErrorMessage()
        else:
            src = response
        return {
            'level': logging.DEBUG,
            'msg': SCRAPEDMSG,
            'args': {
                'src': src,
                'item': item,
            }
        }
def scraped ( self , item , response , spider ) : if isinstance ( response , Failure ) : src = response . getErrorMessage ( ) else : src = response return { 'level' : logging . DEBUG , 'msg' : SCRAPEDMSG , 'args' : { 'src' : src , 'item' : item , } }