mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
67 lines
4.0 KiB
Plaintext
67 lines
4.0 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class FriaTidningen_SE(BasicNewsRecipe):
|
|
title = u'Fria Tidningen'
|
|
__author__ = 'Joakim Lindskog'
|
|
description = 'Nyheter fr\xc3\xa5n Fria Tidningen'
|
|
publisher = 'Fria Tidningen'
|
|
category = 'news, politics, Sweden'
|
|
oldest_article = 7
|
|
delay = 1
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
encoding = 'utf-8'
|
|
language = 'sv'
|
|
|
|
conversion_options = {
|
|
'comment' : description
|
|
, 'tags' : category
|
|
, 'publisher' : publisher
|
|
, 'language' : language
|
|
}
|
|
|
|
keep_only_tags = [dict(name='div', attrs={'id':'content-area'})]
|
|
remove_tags_before = dict(name='div', attrs={'id':'content-area'})
|
|
remove_tags_after = dict(name='div',attrs={'id':'byline'})
|
|
remove_tags = [
|
|
dict(name=['object','link','base']),
|
|
dict(name='div', attrs={'id':'comments'}),
|
|
dict(name='div', attrs={'id':'block-block-21'}),
|
|
dict(name='div', attrs={'id':'block-block-22'}),
|
|
dict(name='div', attrs={'id':'block-block-23'}),
|
|
dict(name='div', attrs={'id':'block-block-24'}),
|
|
dict(name='div', attrs={'id':'block-block-25'}),
|
|
dict(name='div', attrs={'id':'block-block-26'}),
|
|
dict(name='div', attrs={'id':'block-block-27'}),
|
|
dict(name='div', attrs={'id':'block-block-28'}),
|
|
dict(name='div', attrs={'id':'block-block-29'}),
|
|
dict(name='div', attrs={'id':'block-block-30'}),
|
|
dict(name='div', attrs={'id':'block-block-40'})
|
|
]
|
|
|
|
feeds = [(u'Allt', u'http://www.fria.nu/feed'),
|
|
(u'Nyheter', u'http://www.fria.nu/taxonomy/term/13/feed/feed'),
|
|
(u'Inrikes', u'http://www.fria.nu/taxonomy/term/14/0/feed'),
|
|
(u'Utrikes', u'http://www.fria.nu/taxonomy/term/15/0/feed'),
|
|
(u'Ekonomi', u'http://www.fria.nu/taxonomy/term/27047/0/feed'),
|
|
(u'Opinion', u'http://www.fria.nu/taxonomy/term/22/0/feed'),
|
|
(u'Inledaren', u'http://www.fria.nu/taxonomy/term/24/0/feed'),
|
|
(u'Argument', u'http://www.fria.nu/taxonomy/term/23/0/feed'),
|
|
(u'Synpunkten', u'http://www.fria.nu/taxonomy/term/26/0/feed'),
|
|
(u'Debatt', u'http://www.fria.nu/taxonomy/term/25/0/feed'),
|
|
(u'Kultur', u'http://www.fria.nu/taxonomy/term/19/0/feed'),
|
|
(u'Kulturnyheter', u'http://www.fria.nu/taxonomy/term/24534/0/feed'),
|
|
(u'Recensioner', u'http://www.fria.nu/taxonomy/term/24535/0/feed'),
|
|
(u'BAK', u'http://www.fria.nu/taxonomy/term/27/0/feed'),
|
|
(u'Sport & H\xc3\xa4lsa' u'http://www.fria.nu/taxonomy/term/27215/0/feed'),
|
|
(u'Sport', u'http://www.fria.nu/taxonomy/term/20/0/feed'),
|
|
(u'H\xc3\xa4lsa', u'http://www.fria.nu/taxonomy/term/21/0/feed'),
|
|
(u'F\xc3\xb6rdjupning', u'http://www.fria.nu/taxonomy/term/24994/0/feed'),
|
|
(u'Fokus', u'http://www.fria.nu/taxonomy/term/24864/0/feed'),
|
|
(u'Samtal', u'http://www.fria.nu/taxonomy/term/28/0/feed'),
|
|
(u'Stockholm', u'http://www.fria.nu/taxonomy/term/122/0/feed'),
|
|
(u'G\xc3\xb6teborg', u'http://www.fria.nu/taxonomy/term/73/0/feed'),
|
|
(u'Uppsala', u'http://www.fria.nu/taxonomy/term/27324/0/feed'),
|
|
(u'Malm\xc3\xb6', u'http://www.fria.nu/taxonomy/term/28031/0/feed')]
|