From 9a8ff5539dc6b740d7aa75dd345f30b5f2d4c49d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Jan 2021 13:16:28 +0530 Subject: [PATCH] Update General Knowledge Today --- recipes/gkt.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gkt.recipe b/recipes/gkt.recipe index a5e2d24054..51c6ffcd24 100644 --- a/recipes/gkt.recipe +++ b/recipes/gkt.recipe @@ -19,7 +19,7 @@ class GKT(BasicNewsRecipe): if ignore_error: return raise - for a in root.xpath('//div[@class="post-content"]/h1/a[@href]'): + for a in root.xpath('//div[@class="posts-listing"]/h1/a[@href]'): title = self.tag_to_string(a).strip() url = a.get('href') if title and url: @@ -36,7 +36,7 @@ class GKT(BasicNewsRecipe): if 'PDF' in category or not category: continue url = a.get('href') - self.log('Found section:', category) + self.log('Found section:', category, 'at', url) articles = list(self.parse_gkt_section(url)) + \ list(self.parse_gkt_section(url + '/page/2', ignore_error=True)) if articles: