From 5b4f5ec0d57a51e41f79180e8bb9520cc2c4ac72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Jan 2010 13:51:03 -0700 Subject: [PATCH] New recipe for ThinkProgress by Xantan Gum --- resources/recipes/starwars.recipe | 5 ++--- resources/recipes/think_progress.recipe | 12 ++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 resources/recipes/think_progress.recipe diff --git a/resources/recipes/starwars.recipe b/resources/recipes/starwars.recipe index bb04e1ff6b..d42b88f696 100644 --- a/resources/recipes/starwars.recipe +++ b/resources/recipes/starwars.recipe @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ebooks.BeautifulSoup import BeautifulSoup class TheForce(BasicNewsRecipe): title = u'The Force' @@ -21,11 +20,11 @@ class TheForce(BasicNewsRecipe): #dict(name='div', attrs={'class':['pt-box-title', 'pt-box-content', 'blog-entry-footer', 'item-list', 'article-sub-meta']}), #dict(name='div', attrs={'id':['block-td_search_160', 'block-cam_search_160']}), #dict(name='table', attrs={'cellspacing':'0'}), - #dict(name='ul', attrs={'class':'articleTools'}), + #dict(name='ul', attrs={'class':'articleTools'}), ] feeds = [ -('The Force', +('The Force', 'http://www.theforce.net/outnews/tfnrdf.xml'), ] diff --git a/resources/recipes/think_progress.recipe b/resources/recipes/think_progress.recipe new file mode 100644 index 0000000000..2358c6592c --- /dev/null +++ b/resources/recipes/think_progress.recipe @@ -0,0 +1,12 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1263409732(BasicNewsRecipe): + title = u'Think Progress' + description = u'A compilation of progressive articles on social and economic justice, healthy communities, media accountability, global and domestic security.' + __author__ = u'Xanthan Gum' + language = 'en' + + oldest_article = 7 + max_articles_per_feed = 100 + + feeds = [(u'News Articles', u'http://thinkprogress.org/feed/')]