From 3c2a2efd9d46571369c27986ddfbd0d0b79aba83 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 31 Dec 2011 16:36:29 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20#910340=20(Obtaining=20cover=20page=20in?= =?UTF-8?q?=20recipe=20La=20Raz=C3=83=C2=B3n,=20Bolivia)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipes/la_razon_bo.recipe | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes/la_razon_bo.recipe b/recipes/la_razon_bo.recipe index 51ec024350..606c08ebd8 100644 --- a/recipes/la_razon_bo.recipe +++ b/recipes/la_razon_bo.recipe @@ -25,6 +25,7 @@ class LaRazon_Bol(BasicNewsRecipe): img{margin-bottom: 0.4em; display: block} .meta{font-size: small; font-family: Arial,Helvetica,sans-serif} """ + INDEX = 'http://www.la-razon.com/' conversion_options = { 'comment' : description @@ -60,3 +61,10 @@ class LaRazon_Bol(BasicNewsRecipe): for item in soup.findAll(style=True): del item['style'] return soup + + def get_cover_url(self): + soup = self.index_to_soup(self.INDEX) + lightbox = soup.find('div', attrs = {'class' : 'lightbox lightbox-frontpage'}) + return lightbox.img['src'] + +