1
from calibre.web.feeds.news import BasicNewsRecipe
3
class Disinformatico(BasicNewsRecipe):
4
title = u'Il Disinformatico - Paolo Attivissimo'
6
max_articles_per_feed = 25
8
use_embedded_content = False
9
description = 'Un blog di Paolo Attivissimo, giornalista informatico e cacciatore di bufale'
10
publisher = 'http://attivissimo.blogspot.it'
13
publication_type = 'blog'
15
conversion_options = {'title' : title,
16
'comments' : description,
17
'language' : language,
18
'publisher' : 'Paolo Attivissimo',
19
'authors' : 'Paolo Attivissimo',
20
'smarten_punctuation' : True
24
dict(name='div', attrs={'class':'post hentry'})
28
dict(name='span', attrs={'id':'NumCom'}),
29
dict(name='div', attrs={'id':'PostFooter'})
33
h1 {font-size:x-large;}
34
.post-body {margin: 0pt;}
35
.post-timestamp {margin-right: 0pt;}
38
def parse_feeds(self):
39
feeds = BasicNewsRecipe.parse_feeds(self)
40
# Loop through all feeds.
42
# Loop through all articles in feed.
43
for article in feed.articles[:]:
44
if 'podcast' in article.title:
45
feed.articles.remove(article)
49
feeds = [(u'Home', u'http://feeds.feedburner.com/Disinformatico')]