mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Providence Journal
This commit is contained in:
parent
1cd38f1fb2
commit
b2383f4061
@ -3,21 +3,45 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class ProvidenceJournal(BasicNewsRecipe):
|
class ProvidenceJournal(BasicNewsRecipe):
|
||||||
title = u'Providence Journal'
|
title = u'Providence Journal'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
__author__ = 'Krittika Goyal'
|
__author__ = 'mikebw'
|
||||||
oldest_article = 7 # days
|
oldest_article = 10 # days
|
||||||
max_articles_per_feed = 25
|
max_articles_per_feed = 100
|
||||||
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
auto_cleanup = True
|
auto_cleanup = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
ignore_duplicate_articles = {'url'}
|
||||||
|
|
||||||
|
publication_type = 'newspaper'
|
||||||
|
masthead_url = 'http://www.providencejournal.com/Global/images/head/nameplate/providence-journal_logo.png'
|
||||||
|
|
||||||
|
# ProJo web site often returns blank articles unless print version is explicitly requested
|
||||||
|
def print_version(self, url):
|
||||||
|
return url + '&template=printart'
|
||||||
|
|
||||||
|
# RSS sources documented at http://www.providencejournal.com/section/feed?refresh=false
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Red Sox',
|
|
||||||
'http://www.providencejournal.com/sports/red-sox/content/?rss'),
|
('News',
|
||||||
('Political Scene',
|
'http://www.providencejournal.com/news?template=rss&mime=xml'),
|
||||||
'http://www.providencejournal.com/politics/political-scene/?rss'),
|
('Politics',
|
||||||
('Local News',
|
'http://www.providencejournal.com/politics?template=rss&mime=xml'),
|
||||||
'http://www.providencejournal.com/breaking-news/?rss'),
|
('Sports',
|
||||||
('Music',
|
'http://www.providencejournal.com/sports?template=rss&mime=xml'),
|
||||||
'http://www.providencejournal.com/features/entertainment/music/?rss'),
|
('Business',
|
||||||
|
'http://www.providencejournal.com/business?template=rss&mime=xml'),
|
||||||
|
('Opinion',
|
||||||
|
'http://www.providencejournal.com/opinion?template=rss&mime=xml'),
|
||||||
|
('Entertainment',
|
||||||
|
'http://www.providencejournal.com/entertainment?template=rss&mime=xml'),
|
||||||
|
('Lifestyle',
|
||||||
|
'http://www.providencejournal.com/lifestyle?template=rss&mime=xml'),
|
||||||
|
('Food',
|
||||||
|
'http://www.providencejournal.com/food?template=rss&mime=xml'),
|
||||||
|
('Cars',
|
||||||
|
'http://www.providencejournal.com/cars?template=rss&mime=xml'),
|
||||||
|
('Weather',
|
||||||
|
'http://www.providencejournal.com/weather?template=rss&mime=xml'),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user