mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for Aftenposten by davotibarna
This commit is contained in:
parent
a713a79d3b
commit
7fdcba0b24
17
resources/recipes/aftenposten.recipe
Normal file
17
resources/recipes/aftenposten.recipe
Normal file
@ -0,0 +1,17 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Aftenposten(BasicNewsRecipe):
|
||||
title = u'Aftenposten'
|
||||
__author__ = 'davotibarna'
|
||||
description = 'Norske nyheter'
|
||||
language = 'no'
|
||||
oldest_article = 5
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
encoding = 'ISO-8859-1'
|
||||
|
||||
feeds = [(u'Aftenposten', u'http://www.aftenposten.no/eksport/rss-1_0/')]
|
||||
|
||||
def print_version(self, url):
|
||||
return url.replace('#xtor=RSS-3', '?service=print')
|
||||
|
Loading…
x
Reference in New Issue
Block a user