From a83b7f1e03eaf34c8efefd3a8ebb40fc2dd94500 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Feb 2012 09:59:33 +0530 Subject: [PATCH] Novinite BG by M3 Web --- recipes/novinite_bg.recipe | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 recipes/novinite_bg.recipe diff --git a/recipes/novinite_bg.recipe b/recipes/novinite_bg.recipe new file mode 100644 index 0000000000..637a387760 --- /dev/null +++ b/recipes/novinite_bg.recipe @@ -0,0 +1,26 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1329123365(BasicNewsRecipe): + title = u'Novinite.bg' + __author__ = 'M3 Web' + description = 'Real time provider of the latest news from Bulgaria and the world' + category = 'Business, Politics, Society, Sports, Crime, Lifestyle, World, Health' + oldest_article = 7 + max_articles_per_feed = 6 + language = 'bg' + encoding = 'windows-1251' + no_stylesheets = True + remove_javascript = True + keep_only_tags = [dict(name='div', attrs={'id':'content'})] + remove_tags = [dict(name='div', attrs={'id':'text_options'})] + remove_tags = [dict(name='div', attrs={'id':'social_shares_top'})] + remove_tags_after = dict(id='textsize') + feeds = [(u'Business', u'http://novinite.bg/rss.php?category_id=1'), +(u'Politics', u'http://novinite.bg/rss.php?category_id=2'), +(u'Society', u'http://novinite.bg/rss.php?category_id=3'), +(u'Sport', u'http://novinite.bg/rss.php?category_id=4'), +(u'Crime', u'http://novinite.bg/rss.php?category_id=5'), +(u'Lifestyle', u'http://novinite.bg/rss.php?category_id=6'), +(u'Health', u'http://novinite.bg/rss.php?category_id=7'), +(u'Other', u'http://novinite.bg/rss.php?category_id=10'), +(u'World', u'http://novinite.bg/rss.php?category_id=9')]