#NEWLINE# def process_item( self , item , spider ) : #NEWLINE# #INDENT# print ( ( '%s%s%s %s%s (%s %s%s%s, %s)' % ( Fore . GREEN , item [ 'hash_id' ] [ : 10 ] , ( Fore . RESET + Style . BRIGHT ) , item [ 'offer' ] , Style . RESET_ALL , self [ 'currency' ] , ( Fore . YELLOW + Style . DIM ) , item [ 'price' ] , ( Fore . RESET + Style . RESET_ALL ) , ( item [ 'discount' ] if ( 'discount' in item ) else '?' ) ) ) ) #NEWLINE# return item