#NEWLINE# def _parse( self , rawfile ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . content = json . loads ( ex ) #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# _logger . exception ( ex ) #NEWLINE# return False #NEWLINE# #UNINDENT# if ( not self . content ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# _logger . debug ( self . content ) #NEWLINE# self . __images = self . content [ 'images' ] #NEWLINE# if ( ( 'market' in self . content ) and ( 'mkt' in self . content [ 'market' ] ) ) : #NEWLINE# #INDENT# self . act_market = self . content [ 'market' ] [ 'mkt' ] #NEWLINE# #UNINDENT# self . _update_img_link ( ) #NEWLINE# _logger . warning ( 'links to be downloaded: %s' , self . wplinks ) #NEWLINE# return True