From b21235d0a0e327b2b8a67e0c94ecd04baf710ef0 Mon Sep 17 00:00:00 2001 From: maomao905 Date: Tue, 16 Jul 2019 16:48:46 +0900 Subject: [PATCH] Return score. --- README.rst | 4 ++-- readability/readability.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index e85c786..e54069b 100644 --- a/README.rst +++ b/README.rst @@ -33,11 +33,11 @@ Usage 'Example Domain' >>> doc.summary() - u'
\n
\n

Example Domain

\n + (u'
\n
\n

Example Domain

\n

This domain is established to be used for illustrative examples in documents. You may use this\n domain in examples without prior coordination or asking for permission.

\n

More information...

\n
- \n\n
' + \n\n
', 31.43) Change Log ---------- diff --git a/readability/readability.py b/readability/readability.py index d7caa5b..be9c274 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -227,7 +227,7 @@ class Document: # Loop through and try again. continue else: - return cleaned_article + return cleaned_article, best_candidate['content_score'] except Exception as e: log.exception('error getting summary: ') if sys.version_info[0] == 2: