mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
23 lines
797 B
Plaintext
23 lines
797 B
Plaintext
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'),
|
|
]
|