#NEWLINE# def clean( self , doc_to_clean ) : #NEWLINE# #INDENT# 'Remove chunks of the DOM as specified\n        ' #NEWLINE# doc_to_clean = self . clean_body_classes ( doc_to_clean ) #NEWLINE# doc_to_clean = self . clean_article_tags ( doc_to_clean ) #NEWLINE# doc_to_clean = self . clean_em_tags ( doc_to_clean ) #NEWLINE# doc_to_clean = self . remove_drop_caps ( doc_to_clean ) #NEWLINE# doc_to_clean = self . remove_scripts_styles ( doc_to_clean ) #NEWLINE# doc_to_clean = self . clean_bad_tags ( doc_to_clean ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . caption_re ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . google_re ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . entries_re ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . facebook_re ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . facebook_braodcasting_re ) #NEWLINE# doc_to_clean = self . remove_nodes_regex ( doc_to_clean , self . twitter_re ) #NEWLINE# doc_to_clean = self . clean_para_spans ( doc_to_clean ) #NEWLINE# doc_to_clean = self . div_to_para ( doc_to_clean , 'div' ) #NEWLINE# doc_to_clean = self . div_to_para ( doc_to_clean , 'span' ) #NEWLINE# return doc_to_clean