From d0726cb48bd2e1a4c79283e49499942152cb75dd Mon Sep 17 00:00:00 2001 From: Aram Date: Mon, 17 Nov 2014 19:26:38 +0530 Subject: [PATCH] Parse was breaking in the method clean_article_html when keep_article_html=True was used. On adding the import the problem was resolved --- newspaper/parsers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/newspaper/parsers.py b/newspaper/parsers.py index 07e2dbd1..222c45b2 100644 --- a/newspaper/parsers.py +++ b/newspaper/parsers.py @@ -9,6 +9,7 @@ import logging import lxml.etree import lxml.html +import lxml.html.clean from copy import deepcopy