Debian Codegraph @

recipes/pro_physik.recipe

raw
1 ##
2 ## Written: November 2012 (new coding)
3 ## Version: 3.4
4 ## Last update: 2024-02-11
5 ##
6
7 from calibre.web.feeds.recipes import BasicNewsRecipe
8
9
10 class AdvancedUserRecipe1303841067(BasicNewsRecipe):
11 title = 'Pro Physik'
12 __author__ = 'schuster, Armin Geller'
13 # AGE Upd. 2012-11-28, 2019-02-09,
14 # 2019-02-18, 2024-02-11
15 # https://www.mobileread.com/forums/showthread.php?t=133184
16
17 oldest_article = 7
18 max_articles_per_feed = 100
19
20 no_stylesheets = True
21 remove_javascript = True
22 remove_empty_feeds = True
23 language = 'de'
24
25 # In case you want to assign a cover picture to this recipe.
26 # Copy the file Pro_Physik.png to:
27 # c:/Users/YOUR_USERNAME/AppData/Roaming/calibre/resources/images/news_covers/
28 # where YOUR_USERNAME needs to be replaced with your username.
29 # Then remove # in front of cover_url and replace YOUR_USERNAME with your username as well
30
31 # cover_url = file:///c:/Users/YOUR_USERNAME/AppData/Roaming/calibre/resources/images/news_covers/Pro_Physik.png
32
33 extra_css = '''
34 h1 {font-size: 1.6em; text-align: left}
35 h2, h3 {font-size: 1.3em;text-align: left}
36 h2.subtitle {font-size: 1.2em;text-align: left;font-style: italic}
37 h4, h5, h6 {font-size: 1em;text-align: left}
38 div.caption, div.source {font-size: .75em; font-weight: normal;margin-bottom: .75em}
39 '''
40
41 keep_only_tags = [dict(name='article', attrs={'id': ['story']}), dict(name='div', attrs={'class': ['event-item view-mode-default']})]
42
43 remove_tags = [
44 dict(name='ul', attrs={'class': ['wj-share-buttons']}), # Block social media
45 ]
46
47 feeds = [
48 ('Nachrichten', 'https://pro-physik.de/rss/news/'),
49 # (u'Veranstaltungen', u'https://pro-physik.de/rss/events/'), # AGe 2024-02-11
50 ]