mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add ugeskriftet recipe
This commit is contained in:
parent
b7382d6f52
commit
be521ff419
36
recipes/ugeskriftet.recipe
Normal file
36
recipes/ugeskriftet.recipe
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python
|
||||
# vim:fileencoding=utf-8
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Ugeskriftet(BasicNewsRecipe):
|
||||
title = 'Ugeskriftet'
|
||||
description = 'Ugeskriftet for læger'
|
||||
language = 'dan'
|
||||
__author__ = 'https://github.com/morusn'
|
||||
oldest_article = 7
|
||||
publication_type = 'magazine'
|
||||
max_articles_per_feed = 100
|
||||
remove_empty_feeds = True
|
||||
ignore_duplicate_articles = {'title', 'url'}
|
||||
recursion = 5
|
||||
encoding = 'utf-8'
|
||||
keep_only_tags = [
|
||||
dict(attrs={'class': [
|
||||
'ArticleIntro',
|
||||
'textComponent'
|
||||
]})
|
||||
]
|
||||
remove_tags = [dict(name='img')]
|
||||
extra_css = """
|
||||
h1{font-weight: bold; font-size: large;}
|
||||
b{font-weight: bold; font-size: medium;}
|
||||
h2{font-weight: bold; font-size: large;}
|
||||
h3{font-weight: bold; font-size: large;}
|
||||
h4{font-weight: bold; font-size: large;}
|
||||
"""
|
||||
|
||||
feeds = [
|
||||
('Ugeskriftet for læger', 'https://ugeskriftet.dk/rss/forside'),
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user