From ac176a1e29558580aa462e537adb91790c4b9ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 21 Feb 2014 20:23:38 +0100 Subject: [PATCH] use mobile page pt.1 --- recipes/gosc_full.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gosc_full.recipe b/recipes/gosc_full.recipe index abb9c9b694..f149140eb8 100644 --- a/recipes/gosc_full.recipe +++ b/recipes/gosc_full.recipe @@ -20,9 +20,9 @@ class GN(BasicNewsRecipe): remove_javascript = True def find_last_issue(self): - raw = self.index_to_soup('http://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True) + raw = self.index_to_soup('http://m.gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True) doc = html.fromstring(raw) - page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href') + page = doc.xpath('//div[@class="search-result"]/div[1]/div[1]/a/@href') if time.strftime("%w") in ['3','4']: return page[5]