From f7c1feee156c4123e4c7fad96edffad6abb38e09 Mon Sep 17 00:00:00 2001 From: markus Date: Sun, 31 May 2015 14:47:13 +0200 Subject: [PATCH] bugfix in article.py, is_valid_body --- newspaper/article.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newspaper/article.py b/newspaper/article.py index 5fe75d88..bdf567a3 100644 --- a/newspaper/article.py +++ b/newspaper/article.py @@ -269,7 +269,8 @@ def is_valid_body(self): wordcount = self.text.split(' ') sentcount = self.text.split('.') - if meta_type == 'article' and wordcount > (self.config.MIN_WORD_COUNT): + if (meta_type == 'article' and len(wordcount) > + (self.config.MIN_WORD_COUNT)): log.debug('%s verified for article and wc' % self.url) return True