Debian Codegraph @

recipes/zackzack.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 # License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
4
5 from __future__ import absolute_import, division, print_function, unicode_literals
6
7 from calibre.web.feeds.news import BasicNewsRecipe
8
9
10 class Zackzack_at_review(BasicNewsRecipe):
11 title = 'ZackZack.at'
12 oldest_article = 7
13 max_articles_per_feed = 20
14 use_embedded_content = False
15 __author__ = 'Dirk Gomez'
16 language = 'de_AT'
17
18 no_stylesheets = True
19
20 keep_only_tags = [
21 dict(name='div', attrs={'class': 'tdb_title'}),
22 dict(name='div', attrs={'class': 'tdb_single_author'}),
23 dict(name='div', attrs={'class': 'tdb_single_date'}),
24 dict(name='div', attrs={'class': 'tdb_single_content'}),
25 ]
26
27 remove_tags = [
28 dict(name='figure', attrs={'class': 'wp-block-image'}),
29 ]
30
31 feeds = [('Zack Zack', 'https://zackzack.at/feed/')]