mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Sage News - Opinion by Brian Hahn
Fixes #1226420 [[ENHANCEMENT] New Publication Recipe - The Sage News - Opinion](https://bugs.launchpad.net/calibre/+bug/1226420)
This commit is contained in:
parent
aca89b8540
commit
b78885e01f
35
recipes/sage_news_opinion.recipe
Normal file
35
recipes/sage_news_opinion.recipe
Normal file
@ -0,0 +1,35 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1292550626(BasicNewsRecipe):
|
||||
title = 'The Sage News - Opinion'
|
||||
__author__ = 'Brian Hahn'
|
||||
description = 'News without boundaries, Opinion'
|
||||
oldest_article = 200
|
||||
max_articles_per_feed = 150
|
||||
no_stylesheets = True
|
||||
#delay = 1
|
||||
use_embedded_content = False
|
||||
publisher = 'The Sage News Network'
|
||||
category = 'News, Alberta, Canada'
|
||||
language = 'en_CA'
|
||||
encoding = 'iso-8859-1'
|
||||
cover_url = 'http://www.sagenews.ca/images/opinion-cover.jpg'
|
||||
remove_tags_before = dict(id='ContentPanel')
|
||||
remove_tags_after = dict(id='ContentPanel')
|
||||
remove_tags = [dict(name='div', attrs={'id':'BottomAds'}),dict(name='div', attrs={'id':'moreStories'}),dict(name='div', attrs={'id':'StoryNavigation'})]
|
||||
extra_css = 'img { margin:5px }'
|
||||
feeds = [
|
||||
('Editorial Comment', 'http://www.sagenews.ca/Editorial%20Comment.rss'),
|
||||
('Grumpy Old Man', 'http://www.sagenews.ca/Grumpy%20Old%20Man.rss'),
|
||||
('Bad Girl', 'http://www.sagenews.ca/Bad%20Girl.rss'),
|
||||
('Around the Edges with Dixie', 'http://www.sagenews.ca/Around%20the%20Edges%20with%20Dixie.rss'),
|
||||
('Man Vs. World', 'http://www.sagenews.ca/Man%20Vs.%20World.rss'),
|
||||
('Opinion World', 'http://www.sagenews.ca/Opinion-World.rss'),
|
||||
('Opinion Politics', 'http://www.sagenews.ca/Opinion-Politics.rss'),
|
||||
('Opinion Justice', 'http://www.sagenews.ca/Opinion-Justice.rss'),
|
||||
('Opinion Health', 'http://www.sagenews.ca/Opinion-Health.rss'),
|
||||
('Opinion Environment', 'http://www.sagenews.ca/Opinion-Environment.rss'),
|
||||
('Opinion Living', 'http://www.sagenews.ca/Opinion-Living.rss'),
|
||||
('Opinion Sports', 'http://www.sagenews.ca/Opinion-Sports.rss'),
|
||||
('Opinion Business', 'http://www.sagenews.ca/Opinion-Business.rss'),
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user