diff --git a/recipes/digizone.recipe b/recipes/digizone.recipe new file mode 100644 index 0000000000..a2063d1886 --- /dev/null +++ b/recipes/digizone.recipe @@ -0,0 +1,37 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Tomas Latal' + +from calibre.web.feeds.news import BasicNewsRecipe + +class DigiZoneCZ(BasicNewsRecipe): + title = 'DigiZone' + __author__ = 'Tomas Latal' + __version__ = '1.0' + __date__ = '30 April 2011' + description = u'Aktuality a \u010dl\xe1nky z DigiZone.cz' + oldest_article = 1 + max_articles_per_feed = 10 + encoding = 'iso-8859-2' + publisher = 'Internet Info s.r.o.' + category = 'digitalni vysilani, televize, CZ' + language = 'cs' + publication_type = 'newsportal' + no_stylesheets = True + remove_javascript = True + extra_css = 'p.perex{font-size: 1.2em; margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;} \ + p.perex img {display:none;} \ + .urs p {margin: 0 0 0.8em 0;}' + + feeds = [ + (u'Aktuality', u'http://rss.digizone.cz/aktuality'), + (u'\u010cl\xe1nky', u'http://rss.digizone.cz/clanky') + ] + + remove_tags_before = dict(id=['p-article','p-actuality']) + + remove_tags_after = dict(id=['p-article','p-actuality']) + + remove_tags = [ + dict(attrs={'class':['path','mth','lbtr','serial','enquiry','links','dp-n','side','op-ab','op-view','op-sub','op-list',]}), + dict(id=['opinions','discussionList','similarItems','sidebar','footer','opl','promo-box']) + ] diff --git a/recipes/lupa.recipe b/recipes/lupa.recipe new file mode 100644 index 0000000000..c6e5ce9f5e --- /dev/null +++ b/recipes/lupa.recipe @@ -0,0 +1,37 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Tomas Latal' + +from calibre.web.feeds.news import BasicNewsRecipe + +class LupaCZ(BasicNewsRecipe): + title = 'Lupa' + __author__ = 'Tomas Latal' + __version__ = '1.0' + __date__ = '30 April 2011' + description = u'Zpr\xe1vi\u010dky a \u010dl\xe1nky z Lupa.cz' + oldest_article = 2 + max_articles_per_feed = 10 + encoding = 'utf8' + publisher = 'Internet Info s.r.o.' + category = 'IT,news,CZ' + language = 'cs' + publication_type = 'newsportal' + no_stylesheets = True + remove_javascript = True + extra_css = 'p.perex{font-size: 1.2em;margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;} \ + p.perex img {display:none;} \ + .urs p {margin: 0 0 0.8em 0;}' + + feeds = [ + (u'Zpr\xe1vi\u010dky', u'http://rss.lupa.cz/zpravicky'), + (u'\u010cl\xe1nky', u'http://rss.lupa.cz/clanky') + ] + + remove_tags_before = dict(id='main') + + remove_tags_after = [dict(id='main')] + + remove_tags = [ + dict(attrs={'class':['author clear','tags-rubrics','box border style1 links clear','enquiry clear','serial','box border style1 TitleList','breadcrumb clear','article-discussion box border style1 monitoringComponentArticle','link-more border prev-next clear']}), + dict(id=['discussionList','similarItems','sidebar','footer','opl','promo-box']) + ] diff --git a/recipes/mesec.recipe b/recipes/mesec.recipe new file mode 100644 index 0000000000..914dac6461 --- /dev/null +++ b/recipes/mesec.recipe @@ -0,0 +1,37 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Tomas Latal' + +from calibre.web.feeds.news import BasicNewsRecipe + +class MesecCZ(BasicNewsRecipe): + title = u'M\u011b\u0161ec' + __author__ = 'Tomas Latal' + __version__ = '1.0' + __date__ = '30 April 2011' + description = u'Zpr\xe1vi\u010dky a \u010dl\xe1nky z Mesec.cz' + oldest_article = 1 + max_articles_per_feed = 10 + encoding = 'utf8' + publisher = 'Internet Info s.r.o.' + category = 'finance,CZ' + language = 'cs' + publication_type = 'newsportal' + no_stylesheets = True + remove_javascript = True + extra_css = 'p.perex{font-size: 1.2em;margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;} \ + p.perex img {display:none;} \ + .urs p {margin: 0 0 0.8em 0;}' + + feeds = [ + (u'Aktuality', u'http://www.mesec.cz/rss/aktuality/'), + (u'\u010cl\xe1nky', u'http://www.mesec.cz/rss/clanky/') + ] + + remove_tags_before = dict(id='main') + + remove_tags_after = [dict(id='main')] + + remove_tags = [ + dict(attrs={'class':['author clear','tags-rubrics','box border style1 links clear','enquiry clear','serial','box border style1 TitleList','breadcrumb clear','article-discussion box border style1 monitoringComponentArticle','link-more border prev-next clear']}), + dict(id=['discussionList','similarItems','sidebar','footer','opl','promo-box']) + ] diff --git a/recipes/podnikatel.recipe b/recipes/podnikatel.recipe new file mode 100644 index 0000000000..71e4f0e35a --- /dev/null +++ b/recipes/podnikatel.recipe @@ -0,0 +1,37 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Tomas Latal' + +from calibre.web.feeds.news import BasicNewsRecipe + +class PodnikatelCZ(BasicNewsRecipe): + title = 'Podnikatel' + __author__ = 'Tomas Latal' + __version__ = '1.0' + __date__ = '30 April 2011' + description = u'Aktuality a \u010dl\xe1nky z Podnikatel.cz' + oldest_article = 1 + max_articles_per_feed = 10 + encoding = 'utf8' + publisher = 'Internet Info s.r.o.' + category = 'podnikani, bussiness, CZ' + language = 'cs' + publication_type = 'newsportal' + no_stylesheets = True + remove_javascript = True + extra_css = 'p.perex{font-size: 1.2em; margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;} \ + p.perex img {display:none;} \ + .urs p {margin: 0 0 0.8em 0;}' + + feeds = [ + (u'Aktuality', u'http://rss.podnikatel.cz/aktuality'), + (u'\u010cl\xe1nky', u'http://rss.podnikatel.cz/clanky') + ] + + remove_tags_before = dict(id='art-content') + + remove_tags_after = [dict(id='art-content')] + + remove_tags = [ + dict(attrs={'class':['socialshare','box-blue','author clear','labels-terms','box diskuze','ad','page-nav right','infobox','box zpravy','s-clanky']}), + dict(id=['path','article-tools','discussionList','similarItems','promo-box']) + ] diff --git a/recipes/vitalia.recipe b/recipes/vitalia.recipe new file mode 100644 index 0000000000..42a77843e2 --- /dev/null +++ b/recipes/vitalia.recipe @@ -0,0 +1,39 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Tomas Latal' + +from calibre.web.feeds.news import BasicNewsRecipe + +class VitaliaCZ(BasicNewsRecipe): + title = 'Vitalia' + __author__ = 'Tomas Latal' + __version__ = '1.0' + __date__ = '30 April 2011' + description = u'Aktuality a \u010dl\xe1nky z Vitalia.cz' + oldest_article = 1 + max_articles_per_feed = 10 + encoding = 'utf8' + publisher = 'Internet Info s.r.o.' + category = 'zdravi, vztahy, wellness, CZ' + language = 'cs' + publication_type = 'newsportal' + no_stylesheets = True + remove_javascript = True + extra_css = 'p.perex{font-size: 1.2em; margin: 0 0 10px 0; line-height: 1.4; padding: 0 0 10px 0; font-weight: bold;} \ + p.perex img {display:none;} \ + span.author {font-size:0.8em; font-style:italic} \ + .urs div.rs-tip-major {padding:0.5em; background: #e0e0e0 none repeat scroll 0 0;border: 1px solid #909090;} \ + .urs p {margin: 0 0 0.8em 0;}' + + feeds = [ + (u'Aktuality', 'http://www.vitalia.cz/rss/aktuality/'), + (u'\u010cl\xe1nky', u'http://www.vitalia.cz/rss/clanky/'), + ] + + remove_tags_before = dict(id='main') + + remove_tags_after = [dict(id='main')] + + remove_tags = [ + dict(attrs={'class':['author clear','tags-rubrics','box border style1 links clear','enquiry clear','serial','box border style1 TitleList','breadcrumb clear','article-discussion box border style1 monitoringComponentArticle','link-more border prev-next clear']}), + dict(id=['discussionList','similarItems','sidebar','footer','opl','promo-box']) + ]