From 76f3aaec8f4e498414fd97078f8ba3d4f8228974 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 May 2012 15:25:23 +0530 Subject: [PATCH] Update The Grid --- recipes/grid_to.recipe | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/recipes/grid_to.recipe b/recipes/grid_to.recipe index bd3146082e..a066219b24 100644 --- a/recipes/grid_to.recipe +++ b/recipes/grid_to.recipe @@ -1,8 +1,8 @@ from calibre.web.feeds.news import BasicNewsRecipe -class TheGridTO(BasicNewsRecipe): +class TheGrid(BasicNewsRecipe): #: The title to use for the ebook - title = u'The Grid TO' + title = u'The Grid' #: A couple of lines that describe the content this recipe downloads. #: This will be used primarily in a GUI that presents a list of recipes. @@ -67,9 +67,7 @@ class TheGridTO(BasicNewsRecipe): div = soup.find(attrs={'class': section_class}) articles = [] - for tag in div.findAllNext(attrs={'class':'search-block'}): - a = tag.findAll('a', href=True)[1] - + for a in div.findAll(attrs={'class':'post-title'}): title = self.tag_to_string(a) url = a['href']