#NEWLINE# def process_item( self , item , spider ) : #NEWLINE# #INDENT# if ( isinstance ( item , ItemItem ) and isinstance ( spider , ItemSpider ) ) : #NEWLINE# #INDENT# item [ 'category' ] = self . __parsetext ( item [ 'category' ] ) #NEWLINE# item [ 'subcategory' ] = self . __parsetext ( item [ 'subcategory' ] ) #NEWLINE# item [ 'name' ] = self . __parsetext ( item [ 'name' ] ) #NEWLINE# item [ 'itemtype' ] = self . __parsetext ( item [ 'itemtype' ] ) #NEWLINE# item [ 'level' ] = self . __parsetext ( item [ 'level' ] ) #NEWLINE# item [ 'imgbarb' ] = self . __parseimg ( self [ 'imgbarb' ] ) #NEWLINE# item [ 'imgdh' ] = self . __parseimg ( item [ 'imgdh' ] ) #NEWLINE# item [ 'imgmonk' ] = self . __parseimg ( item [ 'imgmonk' ] ) #NEWLINE# item [ 'imgwd' ] = self . __parseimg ( item [ 'imgwd' ] ) #NEWLINE# item [ 'imgwizard' ] = self . __parseimg ( item [ 'imgwizard' ] ) #NEWLINE# item [ 'stats' ] = self . __parsedetails ( item [ 'stats' ] ) #NEWLINE# item [ 'effects' ] = self . __parsedetails ( item [ 'effects' ] ) #NEWLINE# item [ 'extras' ] = self . __parsedetails ( item [ 'extras' ] ) #NEWLINE# #UNINDENT# return item