mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Yakima Herald and Tri-City Herald by Laura Gjovaag
This commit is contained in:
parent
f2219c400b
commit
84c159472d
25
resources/recipes/tri_city_herald.recipe
Normal file
25
resources/recipes/tri_city_herald.recipe
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class TriCityHeraldRecipe(BasicNewsRecipe):
|
||||||
|
title = u'Tri-City Herald'
|
||||||
|
description = 'The Tri-City Herald Mid-Columbia.'
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'Laura Gjovaag'
|
||||||
|
oldest_article = 1.5
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
remove_javascript = True
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name='div', attrs={'id':'story_header'}),
|
||||||
|
dict(name='img', attrs={'class':'imageCycle'}),
|
||||||
|
dict(name='div', attrs={'id':['cycleImageCaption', 'story_body']})
|
||||||
|
]
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='div', attrs={'id':'story_mlt'}),
|
||||||
|
dict(name='a', attrs={'id':'commentCount'}),
|
||||||
|
dict(name=['script', 'noscript', 'style'])]
|
||||||
|
extra_css = 'h1{font: bold 140%;} #cycleImageCaption{font: monospace 60%}'
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'Tri-City Herald Mid-Columbia', u'http://www.tri-cityherald.com/901/index.rss')
|
||||||
|
]
|
21
resources/recipes/yakima_herald.recipe
Normal file
21
resources/recipes/yakima_herald.recipe
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class YakimaHeraldRepublicRecipe(BasicNewsRecipe):
|
||||||
|
title = u'Yakima Herald-Republic'
|
||||||
|
description = 'The Yakima Herald-Republic.'
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'Laura Gjovaag'
|
||||||
|
oldest_article = 1.5
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
remove_javascript = True
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name='div', attrs={'id':['searchleft', 'headline_credit']}),
|
||||||
|
dict(name='div', attrs={'class':['photo', 'cauthor', 'photocredit']}),
|
||||||
|
dict(name='div', attrs={'id':['content_body', 'footerleft']})
|
||||||
|
]
|
||||||
|
extra_css = '.cauthor {font: monospace 60%;} .photocredit {font: monospace 60%}'
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'Yakima Herald Online', u'http://feeds.feedburner.com/yhronlinenews'),
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user