New recipe for ThinkProgress by Xantan Gum

This commit is contained in:
Kovid Goyal 2010-01-13 13:51:03 -07:00
parent 02e92ca871
commit 5b4f5ec0d5
2 changed files with 14 additions and 3 deletions

View File

@ -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'),
]

View File

@ -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/')]