Debian Codegraph @

recipes/punto_informatico.recipe

raw
1 #!/usr/bin/env python
2 __license__ = 'GPL v3'
3 __author__ = 'Gabriele Marini'
4 __copyright__ = 'Gabriele Marini'
5 __description__ = 'Punto Informatico'
6
7 '''
8 http://www.punto-informatico.it/
9 '''
10
11 from calibre.web.feeds.news import BasicNewsRecipe
12
13
14 class PuntoInformatico(BasicNewsRecipe):
15 __author__ = 'Gabriele Marini'
16 description = 'Punto Informatico: Internet dal 1996'
17
18 cover_url = 'http://punto-informatico.it/images/logo_8bit.png'
19 title = 'Punto Informatico '
20 publisher = 'italiaNews High Tech'
21 category = 'News, Information Tecnology'
22
23 language = 'it'
24 timefmt = '[%a, %d %b, %Y]'
25
26 oldest_article = 15
27 max_articles_per_feed = 50
28 use_embedded_content = False
29
30 remove_javascript = True
31 no_stylesheets = True
32 keep_only_tags = [dict(name='div', attrs={'class': 'box'})]
33 remove_tags = [dict(name='div', attrs={'class': 'boxadv'})]
34
35 def get_article_url(self, article):
36 return article.get('id', article.get('guid', None))
37
38 feeds = [('Punto Informatico', 'http://punto-informatico.it/fader/pixml2.xml')]