use mobile page pt.1

This commit is contained in:
Tomasz Długosz 2014-02-21 20:23:38 +01:00
parent b59c3778a3
commit ac176a1e29

View File

@ -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]