diff --git a/recipes/down_to_earth.recipe b/recipes/down_to_earth.recipe index bc37514d3e..e1f3a87cb3 100644 --- a/recipes/down_to_earth.recipe +++ b/recipes/down_to_earth.recipe @@ -1,18 +1,31 @@ -from calibre.web.feeds.recipes import BasicNewsRecipe +from __future__ import with_statement +__license__ = 'GPL 3' +__copyright__ = '2014, Amit ' -class AdvancedUserRecipe1307834113(BasicNewsRecipe): +from calibre.web.feeds.news import BasicNewsRecipe - title = u'Down To Earth' - oldest_article = 300 - __author__ = 'sexymax15' - max_articles_per_feed = 30 - no_stylesheets = True - remove_javascript = True - remove_attributes = ['width','height'] - use_embedded_content = False - language = 'en_IN' - remove_empty_feeds = True - remove_tags_before = dict(name='div', id='PageContent') - remove_tags_after = [dict(name='div'),{'class':'box'}] - remove_tags =[{'class':'box'}] - feeds = [(u'editor', u'http://www.downtoearth.org.in/taxonomy/term/20348/0/feed'), (u'cover story', u'http://www.downtoearth.org.in/taxonomy/term/20345/0/feed'), (u'special report', u'http://www.downtoearth.org.in/taxonomy/term/20384/0/feed'), (u'features', u'http://www.downtoearth.org.in/taxonomy/term/20350/0/feed'), (u'news', u'http://www.downtoearth.org.in/taxonomy/term/20366/0/feed'), (u'debate', u'http://www.downtoearth.org.in/taxonomy/term/20347/0/feed'), (u'natural disasters', u'http://www.downtoearth.org.in/taxonomy/term/20822/0/feed')] +class My_Feeds(BasicNewsRecipe): + title = 'Down To Earth' + language = 'en_IN' + oldest_article = 20 + __author__ = 'Amit' + max_articles_per_feed = 100 + no_stylesheets = True + remove_javascript = True + center_navbar = True + use_embedded_content = True + remove_empty_feeds = True + remove_tags_before = dict(name='div', id='PageContent') + remove_tags_after = [dict(name='div'),{'class':'taxonomy-terms'}] + remove_tags =[dict(id=['comments','breadcrumb','node_related_stories']), + dict(attrs={'class':['commentCount', 'box']}) + ] + + feeds = [(u'editor', u'http://www.downtoearth.org.in/taxonomy/term/20348/0/feed'), + (u'cover story', u'http://www.downtoearth.org.in/taxonomy/term/20345/0/feed'), + (u'special report', u'http://www.downtoearth.org.in/taxonomy/term/20384/0/feed'), + (u'features', u'http://www.downtoearth.org.in/taxonomy/term/20350/0/feed'), + (u'news', u'http://www.downtoearth.org.in/taxonomy/term/20366/0/feed'), + (u'debate', u'http://www.downtoearth.org.in/taxonomy/term/20347/0/feed'), + (u'natural disasters', u'http://www.downtoearth.org.in/taxonomy/term/20822/0/feed') + ]