mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
changes by fenuks
This commit is contained in:
parent
2dd05b1a16
commit
dc568659e7
@ -14,13 +14,14 @@ class gazetaprawna(BasicNewsRecipe):
|
|||||||
title = u'Gazeta Prawna'
|
title = u'Gazeta Prawna'
|
||||||
__author__ = u'Vroo'
|
__author__ = u'Vroo'
|
||||||
publisher = u'Infor Biznes'
|
publisher = u'Infor Biznes'
|
||||||
oldest_article = 7
|
oldest_article = 1
|
||||||
max_articles_per_feed = 20
|
max_articles_per_feed = 20
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
description = 'Polski dziennik gospodarczy'
|
description = 'Polski dziennik gospodarczy'
|
||||||
language = 'pl'
|
language = 'pl'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
|
|
||||||
remove_tags_after = [
|
remove_tags_after = [
|
||||||
dict(name='div', attrs={'class':['data-art']})
|
dict(name='div', attrs={'class':['data-art']})
|
||||||
@ -30,7 +31,7 @@ class gazetaprawna(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Wiadomo\u015bci - najwa\u017cniejsze', u'http://www.gazetaprawna.pl/wiadomosci/najwazniejsze/rss.xml'),
|
(u'Z ostatniej chwili', u'http://rss.gazetaprawna.pl/GazetaPrawna'),
|
||||||
(u'Biznes i prawo gospodarcze', u'http://biznes.gazetaprawna.pl/rss.xml'),
|
(u'Biznes i prawo gospodarcze', u'http://biznes.gazetaprawna.pl/rss.xml'),
|
||||||
(u'Prawo i wymiar sprawiedliwo\u015bci', u'http://prawo.gazetaprawna.pl/rss.xml'),
|
(u'Prawo i wymiar sprawiedliwo\u015bci', u'http://prawo.gazetaprawna.pl/rss.xml'),
|
||||||
(u'Praca i ubezpieczenia', u'http://praca.gazetaprawna.pl/rss.xml'),
|
(u'Praca i ubezpieczenia', u'http://praca.gazetaprawna.pl/rss.xml'),
|
||||||
@ -51,3 +52,8 @@ class gazetaprawna(BasicNewsRecipe):
|
|||||||
url = url.replace('prawo.gazetaprawna', 'www.gazetaprawna')
|
url = url.replace('prawo.gazetaprawna', 'www.gazetaprawna')
|
||||||
url = url.replace('praca.gazetaprawna', 'www.gazetaprawna')
|
url = url.replace('praca.gazetaprawna', 'www.gazetaprawna')
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
soup = self.index_to_soup('http://www.egazety.pl/infor/e-wydanie-dziennik-gazeta-prawna.html')
|
||||||
|
self.cover_url = soup.find('p', attrs={'class':'covr'}).a['href']
|
||||||
|
return getattr(self, 'cover_url', self.cover_url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user