From 25f8ba4abdc8d0b67ff00199f2127bcf137717c3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Dec 2013 07:53:01 +0530 Subject: [PATCH] Update HBR --- recipes/hbr.recipe | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes/hbr.recipe b/recipes/hbr.recipe index f1a8614ecb..1e6ea5f93d 100644 --- a/recipes/hbr.recipe +++ b/recipes/hbr.recipe @@ -13,8 +13,6 @@ class HBR(BasicNewsRecipe): LOGIN_URL = 'https://hbr.org/login?request_url=/' LOGOUT_URL = 'https://hbr.org/logout?request_url=/' - INDEX = 'http://hbr.org' - keep_only_tags = [dict(name='div', id='pageContainer')] remove_tags = [dict(id=['mastheadContainer', 'magazineHeadline', 'articleToolbarTopRD', 'pageRightSubColumn', 'pageRightColumn', @@ -96,7 +94,7 @@ class HBR(BasicNewsRecipe): self.cover_url=datencover.img['src'] dates=self.tag_to_string(datencover.img['alt']) self.timefmt = u' [%s]'%dates - soup = self.index_to_soup(self.INDEX + soup0.find('div', attrs={'class':'magazine_page'}).a['href']) + soup = self.index_to_soup(soup0.find('div', attrs={'class':'magazine_page'}).a['href']) feeds = self.hbr_parse_toc(soup) return feeds