mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for The Providence Journal by Krittika Goyal
This commit is contained in:
parent
11e362a837
commit
49383b0db5
30
resources/recipes/projo.recipe
Normal file
30
resources/recipes/projo.recipe
Normal file
@ -0,0 +1,30 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class ProvidenceJournal(BasicNewsRecipe):
|
||||
title = u'Providence Journal'
|
||||
language = 'en'
|
||||
__author__ = 'Krittika Goyal'
|
||||
oldest_article = 7 #days
|
||||
max_articles_per_feed = 25
|
||||
|
||||
no_stylesheets = True
|
||||
remove_tags_before = dict(name='span', attrs={'class':'vitstorybody'})
|
||||
#remove_tags_after = dict(name='td', attrs={'class':'newptool1'})
|
||||
remove_tags = [
|
||||
dict(name='iframe'),
|
||||
dict(name='div', attrs={'id':['storycontentright','slcgm_comments_block', 'footercontainer']}),
|
||||
#dict(name='span', text=':'),
|
||||
]
|
||||
|
||||
feeds = [
|
||||
('Red Sox',
|
||||
'http://www.projo.com/newskiosk/rss/projoredsox.xml'),
|
||||
('Political Scene',
|
||||
'http://www.projo.com/newskiosk/rss/projopolitical.xml'),
|
||||
('Rhode Island News',
|
||||
'http://www.projo.com/newskiosk/rss/projolocalnews.xml'),
|
||||
('Music',
|
||||
'http://www.projo.com/newskiosk/rss/projomusic.xml'),
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user