diff --git a/recipes/babyonline.recipe b/recipes/babyonline.recipe new file mode 100644 index 0000000000..0b892ed673 --- /dev/null +++ b/recipes/babyonline.recipe @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +babyonline.ro +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class BabyOnline(BasicNewsRecipe): + title = u'Baby Online' + __author__ = u'Silviu Cotoar\u0103' + description = u'De la p\u0103rinte la p\u0103rinte' + publisher = u'Baby Online' + oldest_article = 50 + language = 'ro' + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + category = 'Ziare,Reviste,Copii,Mame' + encoding = 'utf-8' + cover_url = 'http://www.babyonline.ro/images/default/logo.gif' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ + dict(name='div', attrs={'id':'article_container'}) + ] + + remove_tags = [ + dict(name='div', attrs={'id':'bar_nav'}), + dict(name='div', attrs={'id':'service_send'}), + dict(name='div', attrs={'id':'other_videos'}), + dict(name='div', attrs={'class':'dot_line_yellow'}), + dict(name='a', attrs={'class':'print'}), + dict(name='a', attrs={'class':'email'}), + dict(name='a', attrs={'class':'YM'}), + dict(name='a', attrs={'class':'comment'}), + dict(name='div', attrs={'class':'tombstone_cross'}), + dict(name='span', attrs={'class':'liketext'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'id':'service_send'}) + ] + + feeds = [ + (u'Feeds', u'http://www.babyonline.ro/rss_homepage.xml') + ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/ecuisine.recipe b/recipes/ecuisine.recipe index 53631e0b14..77d761e653 100644 --- a/recipes/ecuisine.recipe +++ b/recipes/ecuisine.recipe @@ -14,14 +14,14 @@ class EcuisineRo(BasicNewsRecipe): __author__ = u'Silviu Cotoar\u0103' description = u'Reinventeaz\u0103 pl\u0103cerea de a g\u0103ti' publisher = 'eCuisine' - oldest_article = 5 + oldest_article = 50 language = 'ro' max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = False category = 'Ziare,Retete,Bucatarie' encoding = 'utf-8' - cover_url = '' + cover_url = 'http://www.ecuisine.ro/sites/all/themes/ecuisine/images/logo.gif' conversion_options = { 'comments' : description @@ -31,8 +31,8 @@ class EcuisineRo(BasicNewsRecipe): } keep_only_tags = [ - dict(name='div', attrs={'class':'page-title'}) - , dict(name='div', attrs={'class':'content clearfix'}) + dict(name='h1', attrs={'id':'page-title'}) + , dict(name='div', attrs={'class':'field-item even'}) ] remove_tags = [ diff --git a/recipes/egirl.recipe b/recipes/egirl.recipe index b456323db9..56d515669d 100644 --- a/recipes/egirl.recipe +++ b/recipes/egirl.recipe @@ -31,8 +31,8 @@ class EgirlRo(BasicNewsRecipe): } keep_only_tags = [ - dict(name='div', attrs={'id':'title_art'}) - , dict(name='div', attrs={'class':'content_style'}) + dict(name='div', attrs={'id':'content_art'}) + , dict(name='div', attrs={'class':'content_articol'}) ] feeds = [ diff --git a/recipes/icons/babyonline.png b/recipes/icons/babyonline.png new file mode 100644 index 0000000000..030c611d88 Binary files /dev/null and b/recipes/icons/babyonline.png differ diff --git a/recipes/tabu.recipe b/recipes/tabu.recipe index f98ed8a155..941c491c79 100644 --- a/recipes/tabu.recipe +++ b/recipes/tabu.recipe @@ -37,10 +37,12 @@ class TabuRo(BasicNewsRecipe): ] remove_tags = [ - dict(name='div', attrs={'class':'asemanatoare'}) + dict(name='div', attrs={'class':'asemanatoare'}), + dict(name='div', attrs={'class':'social'}) ] remove_tags_after = [ + dict(name='div', attrs={'class':'social'}), dict(name='div', attrs={'id':'comments'}), dict(name='div', attrs={'class':'asemanatoare'}) ]