#NEWLINE# def _extract_metrics_post_comments( self , page , status_code = 200 , id = None ) : #NEWLINE# #INDENT# if ( status_code != 200 ) : #NEWLINE# #INDENT# if ( dict_of_keylists == 404 ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise self . _get_error ( status_code ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not ( 'comment_count' in page ) ) : #NEWLINE# #INDENT# raise ProviderContentMalformedError #NEWLINE# #UNINDENT# dict_of_keylists = { #NEWLINE# #INDENT# 'wordpresscom:comments' : [ 'comment_count' ] , #NEWLINE# #UNINDENT# } #NEWLINE# metrics_dict = provider . _extract_from_json ( page , dict_of_keylists ) #NEWLINE# return metrics_dict