Update gosc_niedzielny and gosc_full for website changes

This commit is contained in:
Tomasz Długosz 2016-07-20 22:49:19 +02:00
parent f0f73830b7
commit b614a3ef86
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class GN(BasicNewsRecipe):
def find_last_issue(self): def find_last_issue(self):
raw = self.index_to_soup('http://m.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) doc = html.fromstring(raw)
page = doc.xpath('//div[@class="search-result"]/div[1]/div[1]/a/@href') page = doc.xpath('//div[@class="search-result release-result"]/div[1]/div[1]/a/@href')
if time.strftime("%w") in ['3','4']: if time.strftime("%w") in ['3','4']:
return page[5] return page[5]

View File

@ -22,7 +22,7 @@ class GN(BasicNewsRecipe):
def find_last_issue(self): 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://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
doc = html.fromstring(raw) 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 release-result"]/div[1]/div[2]/h1//a/@href')
return page[0] return page[0]