translate comments

This commit is contained in:
Tomasz Długosz 2014-02-20 23:27:52 +01:00
parent 3dccff1f94
commit e5cc63b1c6

View File

@ -33,7 +33,7 @@ class GN(BasicNewsRecipe):
soup = self.index_to_soup('http://gosc.pl' + self.find_last_issue()) soup = self.index_to_soup('http://gosc.pl' + self.find_last_issue())
self.cover_url = 'http://www.gosc.pl' + soup.find('div',attrs={'class':'fl-w100 release-wp'}).findAll('a')[-4].contents[0]['src'] self.cover_url = 'http://www.gosc.pl' + soup.find('div',attrs={'class':'fl-w100 release-wp'}).findAll('a')[-4].contents[0]['src']
feeds = [] feeds = []
# wstepniak # editorial:
a = soup.find('div',attrs={'class':'release-wp-b'}) a = soup.find('div',attrs={'class':'release-wp-b'})
art = a.find('a') art = a.find('a')
articles = [ articles = [
@ -42,7 +42,7 @@ class GN(BasicNewsRecipe):
'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'Wstępniak',articles))
# kategorie # columns:
for addr in soup.findAll('a',attrs={'href':re.compile('kategoria')}): for addr in soup.findAll('a',attrs={'href':re.compile('kategoria')}):
if addr.string != u'wszystkie artyku\u0142y z tej kategorii \xbb': if addr.string != u'wszystkie artyku\u0142y z tej kategorii \xbb':
main_block = self.index_to_soup('http://www.gosc.pl' + addr['href']) main_block = self.index_to_soup('http://www.gosc.pl' + addr['href'])