readabilite: forgot count_content
Was meant to be in an earlier commit
This commit is contained in:
		@@ -38,6 +38,11 @@ def count_words(string):
 | 
				
			|||||||
    return count
 | 
					    return count
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def count_content(node):
 | 
				
			||||||
 | 
					    # count words and imgs
 | 
				
			||||||
 | 
					    return count_words(node.text_content()) + len(node.findall('.//img'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
regex_bad = re.compile('|'.join(['comment', 'community', 'extra', 'foot',
 | 
					regex_bad = re.compile('|'.join(['comment', 'community', 'extra', 'foot',
 | 
				
			||||||
    'sponsor', 'pagination', 'pager', 'tweet', 'twitter', 'com-', 'masthead',
 | 
					    'sponsor', 'pagination', 'pager', 'tweet', 'twitter', 'com-', 'masthead',
 | 
				
			||||||
    'media', 'meta', 'related', 'shopping', 'tags', 'tool', 'author', 'about']),
 | 
					    'media', 'meta', 'related', 'shopping', 'tags', 'tool', 'author', 'about']),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user