From 5247233b4bf775e613e413dd01b53773f02af6ed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Mar 2009 15:25:21 -0800 Subject: [PATCH] IGN:... --- .../web/feeds/recipes/recipe_news_times.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/calibre/web/feeds/recipes/recipe_news_times.py diff --git a/src/calibre/web/feeds/recipes/recipe_news_times.py b/src/calibre/web/feeds/recipes/recipe_news_times.py new file mode 100644 index 0000000000..3fee33c028 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_news_times.py @@ -0,0 +1,28 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class NewsTimes(BasicNewsRecipe): + title = 'Newstimes' + __author__ = 'Darko Miletic' + description = 'news from USA' + language = _('English') + oldest_article = 1 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + + keep_only_tags = [ + dict(name='h1', attrs={'id':'articleTitle'}) + ,dict(name='div', attrs={'id':['articleByline','articleDate','articleBody']}) + ] + remove_tags = [ + dict(name=['object','link']) + ,dict(name='div', attrs={'class':'articleEmbeddedAdBox'}) + ] + + + feeds = [ + (u'Latest news' , u'http://feeds.newstimes.com/mngi/rss/CustomRssServlet/3/201071.xml' ) + ] +