diff --git a/recipes/divahair.recipe b/recipes/divahair.recipe new file mode 100644 index 0000000000..978ac19808 --- /dev/null +++ b/recipes/divahair.recipe @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +divahair.ro +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class DivaHair(BasicNewsRecipe): + title = u'Diva Hair' + language = 'ro' + __author__ = u'Silviu Cotoar\u0103' + description = u'Coafuri, frizuri, tunsori ..' + publisher = u'Diva Hair' + category = u'Ziare,Stiri,Coafuri,Femei' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + cover_url = 'http://www.divahair.ro/imgs/logo.jpg' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ + dict(name='td', attrs={'class':'spatiuart'}) + , dict(name='div', attrs={'class':'spatiuart'}) + ] + + + remove_tags = [ + dict(name='div', attrs={'class':'categorie'}) + , dict(name='div', attrs={'class':'gri gri2 detaliiart'}) + , dict(name='div', attrs={'class':'articol_box_bottom'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'class':'articol_box_bottom'}) + ] + + feeds = [ (u'\u0218tiri', u'http://www.divahair.ro/feed') ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/icons/divahair.png b/recipes/icons/divahair.png new file mode 100644 index 0000000000..4cb2964687 Binary files /dev/null and b/recipes/icons/divahair.png differ diff --git a/recipes/icons/mayra.png b/recipes/icons/mayra.png new file mode 100644 index 0000000000..bbc0c8d259 Binary files /dev/null and b/recipes/icons/mayra.png differ diff --git a/recipes/icons/moldovaazi.png b/recipes/icons/moldovaazi.png new file mode 100644 index 0000000000..1fc3532295 Binary files /dev/null and b/recipes/icons/moldovaazi.png differ diff --git a/recipes/icons/newsmoldova.png b/recipes/icons/newsmoldova.png new file mode 100644 index 0000000000..a4faaa4635 Binary files /dev/null and b/recipes/icons/newsmoldova.png differ diff --git a/recipes/mayra.recipe b/recipes/mayra.recipe new file mode 100644 index 0000000000..ae449d819d --- /dev/null +++ b/recipes/mayra.recipe @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +mayra.ro +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Mayra(BasicNewsRecipe): + title = u'Mayra' + language = 'ro' + __author__ = u'Silviu Cotoar\u0103' + description = u'Traieste urban, cool, sexy' + publisher = 'Mayra' + category = 'Ziare,Stiri,Reviste' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + cover_url = 'http://img.konkurs.ro/img/concursuri-cu-premii/147/14672_front.jpg' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ + dict(name='div', attrs={'id':'article_details'}) + ] + + remove_tags = [ + dict(name='div', attrs={'id':'LikePluginPagelet'}) + , dict(name='p', attrs={'id':'tags'}) + , dict(name='span', attrs={'id':'tweet-button'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'id':'LikePluginPagelet'}) + ] + + feeds = [ (u'\u0218tiri', u'http://www.mayra.ro/rss') ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/moldovaazi.recipe b/recipes/moldovaazi.recipe new file mode 100644 index 0000000000..0c92297dc0 --- /dev/null +++ b/recipes/moldovaazi.recipe @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +azi.md +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class MoldovaAzi(BasicNewsRecipe): + title = u'Moldova Azi' + language = 'ro' + __author__ = u'Silviu Cotoar\u0103' + description = u'Moldova pe internet' + publisher = 'Moldova Azi' + category = 'Ziare,Stiri,Moldova' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + cover_url = 'http://www.azi.md/images/logo.gif' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ dict(name='div', attrs={'id':'in'}) + ] + + + remove_tags = [ + dict(name='div', attrs={'class':'in-more-stories'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'id':'comment_wrapper'}) + , dict(name='div', attrs={'class':'box-title4'}) + ] + + feeds = [ (u'\u0218tiri', u'http://www.azi.md/ro/feeds/0/rss201') ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/newsmoldova.recipe b/recipes/newsmoldova.recipe new file mode 100644 index 0000000000..e5e4bc5ac4 --- /dev/null +++ b/recipes/newsmoldova.recipe @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +newsmoldova.md +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class NewsMoldova(BasicNewsRecipe): + title = u'Agen\u0163ia de \u015ftiri Moldova' + language = 'ro' + __author__ = u'Silviu Cotoar\u0103' + description = u'Agen\u0163ia de \u015ftiri Moldova' + publisher = 'Moldova' + category = 'Ziare,Stiri,Moldova' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + cover_url = 'http://www.newsmoldova.md/i/logo_top_md.gif' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ dict(name='div', attrs={'class':'main-article-index article'}) + ] + + + remove_tags = [ + dict(name='div', attrs={'id':'actions'}) + , dict(name='li', attrs={'class':'invisible'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'id':'actions'}) + ] + + feeds = [ (u'\u0218tiri', u'http://newsmoldova.md/export/rss2/archive/index.xml') ] + + def preprocess_html(self, soup): + return self.adeify_images(soup)