From 53f5f5312ae7a3a1d6f7978a9b362263a3941052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 30 Jun 2018 22:58:35 +0200 Subject: [PATCH] =?UTF-8?q?update=20recipes=20for=20Go=C5=9B=C4=87=C2=A0Ni?= =?UTF-8?q?edzielny?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipes/gosc_full.recipe | 4 +++- recipes/gosc_niedzielny.recipe | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/gosc_full.recipe b/recipes/gosc_full.recipe index 1be85bfe74..0857ad5fe8 100644 --- a/recipes/gosc_full.recipe +++ b/recipes/gosc_full.recipe @@ -70,7 +70,7 @@ class GN(BasicNewsRecipe): not_assigned.extend(articles) page += 1 pages = soup.find('span', attrs={'class': 'pgr_nrs'}) - if str(page) not in [self.tag_to_string(x)[1] for x in pages.findAll('a')]: + if str(page) not in [self.tag_to_string(x) for x in pages.findAll('a')]: break feeds.append((u'Nieprzypisane', not_assigned)) @@ -107,9 +107,11 @@ class GN(BasicNewsRecipe): r.extract() for r in soup.findAll(attrs={'class': ['di_dr', 'doc_image']}): del r['style'] + ''' for r in soup.findAll(attrs={'class': 'cm-i-a'}): r.replaceWith('
' + r.prettify() + '
') + ''' return soup keep_only_tags = [ diff --git a/recipes/gosc_niedzielny.recipe b/recipes/gosc_niedzielny.recipe index f540276015..c85e35723c 100644 --- a/recipes/gosc_niedzielny.recipe +++ b/recipes/gosc_niedzielny.recipe @@ -66,7 +66,7 @@ class GN(BasicNewsRecipe): not_assigned.extend(articles) page += 1 pages = soup.find('span', attrs={'class': 'pgr_nrs'}) - if str(page) not in [self.tag_to_string(x)[1] for x in pages.findAll('a')]: + if str(page) not in [self.tag_to_string(x) for x in pages.findAll('a')]: break feeds.append((u'Nieprzypisane', not_assigned))