add masthead picture and fix feed name

This commit is contained in:
Tomasz Długosz 2014-02-23 02:05:42 +01:00
parent ac176a1e29
commit 09f9d7348f

View File

@ -18,6 +18,7 @@ class GN(BasicNewsRecipe):
no_stylesheets = True no_stylesheets = True
language = 'pl' language = 'pl'
remove_javascript = True remove_javascript = True
masthead_url = 'http://m.gosc.pl/static/themes/czerwony_gosc-mobile/logo.png'
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)
@ -43,7 +44,7 @@ class GN(BasicNewsRecipe):
'url' : 'http://www.gosc.pl' + art['href'], 'url' : 'http://www.gosc.pl' + art['href'],
'description' : self.tag_to_string(a.find('p',attrs={'class':'b lead'})) 'description' : self.tag_to_string(a.find('p',attrs={'class':'b lead'}))
}] }]
feeds.append((u'Wstępniak',articles)) feeds.append((u'Na dobry początek',articles))
enlisted.append(articles[0].get('url')) enlisted.append(articles[0].get('url'))
# columns: # columns:
for addr in soup.findAll('a',attrs={'href':re.compile('kategoria')}): for addr in soup.findAll('a',attrs={'href':re.compile('kategoria')}):