mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for The Kitsap Sun by Darko Miletic
This commit is contained in:
parent
547e984acc
commit
b2857225db
BIN
resources/images/news/kitsapun.png
Normal file
BIN
resources/images/news/kitsapun.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
44
resources/recipes/kitsapun.recipe
Normal file
44
resources/recipes/kitsapun.recipe
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.kitsapun.com
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Kitsapsun(BasicNewsRecipe):
|
||||
title = 'Kitsap Sun'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'News from Kitsap County'
|
||||
publisher = 'Scripps Interactive Newspapers Group'
|
||||
category = 'news, Kitsap county, USA'
|
||||
language = 'en'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
encoding = 'cp1252'
|
||||
use_embedded_content = False
|
||||
|
||||
conversion_options = {
|
||||
'comments' : description
|
||||
,'tags' : category
|
||||
,'language' : language
|
||||
,'publisher': publisher
|
||||
}
|
||||
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'id':['story_meta','story_content']})]
|
||||
|
||||
remove_tags = [dict(name=['object','link','embed','form','iframe'])]
|
||||
|
||||
feeds = [
|
||||
(u'News' , u'http://www.kitsapsun.com/rss/headlines/news/' )
|
||||
,(u'Business' , u'http://www.kitsapsun.com/rss/headlines/business/' )
|
||||
,(u'Communities' , u'http://www.kitsapsun.com/rss/headlines/communities/' )
|
||||
,(u'Entertainment', u'http://www.kitsapsun.com/rss/headlines/entertainment/')
|
||||
,(u'Lifestyles' , u'http://www.kitsapsun.com/rss/headlines/lifestyles/' )
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return url.rpartition('/')[0] + '/?print=1'
|
Loading…
x
Reference in New Issue
Block a user