From 1127bb435b58e8fbc3d83da5e4e4ba63209f4730 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Apr 2010 06:23:27 -0600 Subject: [PATCH] Fix #5335 (guardian receipe outputs pages that contain two html-trees) --- resources/recipes/guardian.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/recipes/guardian.recipe b/resources/recipes/guardian.recipe index f74414a569..344e061c26 100644 --- a/resources/recipes/guardian.recipe +++ b/resources/recipes/guardian.recipe @@ -119,5 +119,7 @@ class Guardian(BasicNewsRecipe): raise NotImplementedError + def postprocess_html(self,soup,first): + return soup.findAll('html')[0]