Debian Codegraph @

recipes/contropiano.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class AdvancedUserRecipe(BasicNewsRecipe):
5 title = 'Contropiano'
6 oldest_article = 7
7 max_articles_per_feed = 25
8 language = 'it'
9 __author__ = 'michele'
10
11 remove_javascript = True
12 no_stylesheets = True
13 use_embedded_content = False
14 remove_empty_feeds = True
15
16 keep_only_tags = [dict(name='div', attrs={'class': ['category-archive single']}), dict(name='div', attrs={'class': ['content-post']})]
17
18 remove_tags = [
19 dict(name='span', attrs={'id': ['postviews']}),
20 dict(name='div', attrs={'class': ['social-share']}),
21 dict(name='p', attrs={'class': ['firma-redazione']}),
22 ]
23
24 remove_tags_after = dict(name='p', attrs={'class': ['firma-redazione']})
25
26 feeds = [
27 ('Politica', 'http://contropiano.org/news/politica-news/feed'),
28 ('Internazionale', 'http://contropiano.org/news/internazionale-news/feed'),
29 ('Aggiornamenti in breve', 'http://contropiano.org/news/aggiornamenti-in-breve/feed'),
30 ('Economia', 'http://contropiano.org/news/news-economia/feed'),
31 ('Ambiente', 'http://contropiano.org/news/ambiente-news/feed'),
32 ('Scienza', 'http://contropiano.org/news/scienza-news/feed'),
33 ('Cultura', 'http://contropiano.org/news/cultura-news/feed'),
34 ('Locali', 'http://contropiano.org/regionali/feed'),
35 ('Lavoro', 'http://contropiano.org/news/lavoro-conflitto-news/feed'),
36 ('Malapolizia', 'http://contropiano.org/news/malapolizia-news/feed'),
37 ('Interventi', 'http://contropiano.org/interventi/feed'),
38 ('Documenti', 'http://contropiano.org/documenti/feed'),
39 ('Vignette', 'http://contropiano.org/vignette/feed'),
40 ('Altro', 'http://contropiano.org/altro/feed'),
41 ]