mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Winnipeg Sun by rty
This commit is contained in:
parent
4b0ca2408b
commit
bf0fde48a7
35
resources/recipes/winnipeg_sun.recipe
Normal file
35
resources/recipes/winnipeg_sun.recipe
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class AdvancedUserRecipe1277647803(BasicNewsRecipe):
|
||||||
|
title = u'Winnipeg Sun'
|
||||||
|
__author__ = 'rty'
|
||||||
|
__version__ = '1.0'
|
||||||
|
oldest_article = 2
|
||||||
|
pubisher = 'www.winnipegsun.com'
|
||||||
|
description = 'Winnipeg Newspaper'
|
||||||
|
category = 'News, Winnipeg, Canada'
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'UTF-8'
|
||||||
|
remove_javascript = True
|
||||||
|
use_embedded_content = False
|
||||||
|
language = 'en_CA'
|
||||||
|
feeds = [
|
||||||
|
(u'News', u'http://www.winnipegsun.com/news/rss.xml'),
|
||||||
|
(u'Columnists', u'http://www.winnipegsun.com/columnists/rss.xml'),
|
||||||
|
(u'Editorial', u'http://www.winnipegsun.com/comment/editorial/rss.xml'),
|
||||||
|
(u'Entertainments', u'http://www.winnipegsun.com/entertainment/rss.xml'),
|
||||||
|
(u'Life', u'http://www.winnipegsun.com/life/rss.xml'),
|
||||||
|
(u'Money', u'http://www.winnipegsun.com/money/rss.xml')
|
||||||
|
]
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name='div', attrs={'id':'article'}),
|
||||||
|
]
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='div', attrs={'class':['leftBox','bottomBox clear']}),
|
||||||
|
dict(name='ul', attrs={'class':'tabs dl contentSwap'}),
|
||||||
|
dict(name='div', attrs={'id':'commentsBottom'}),
|
||||||
|
]
|
||||||
|
remove_tags_after = [
|
||||||
|
dict(name='div', attrs={'class':'bottomBox clear'})
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user