mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sage News - Satire by Brian Hahn
Fixes #1226417 [[Enhancement] New Publication Recipe - The Sage News - Satire](https://bugs.launchpad.net/calibre/+bug/1226417)
This commit is contained in:
parent
50d619d471
commit
aca89b8540
32
recipes/sage_news.recipe
Normal file
32
recipes/sage_news.recipe
Normal file
@ -0,0 +1,32 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1292550626(BasicNewsRecipe):
|
||||
title = 'The Sage News - Satire'
|
||||
__author__ = 'Brian Hahn'
|
||||
description = 'News without boundaries, Satire'
|
||||
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/satire-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 = [
|
||||
('Satire World', 'http://www.sagenews.ca/Satire-World.rss'),
|
||||
('Satire Politics', 'http://www.sagenews.ca/Satire-Politics.rss'),
|
||||
('Satire Justice', 'http://www.sagenews.ca/Satire-Justice.rss'),
|
||||
('Satire Health', 'http://www.sagenews.ca/Satire-Health.rss'),
|
||||
('Satire Environment', 'http://www.sagenews.ca/Satire-Environment.rss'),
|
||||
('Satire Living', 'http://www.sagenews.ca/Satire-Living.rss'),
|
||||
('Satire Sports', 'http://www.sagenews.ca/Satire-Sports.rss'),
|
||||
('Satire Business', 'http://www.sagenews.ca/Satire-Business.rss'),
|
||||
('Satire Agriculture', 'http://www.sagenews.ca/Satire-Agriculture.rss'),
|
||||
('Satire Humour', 'http://www.sagenews.ca/Satire-Humour.rss'),
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user