Debian Codegraph @

recipes/tovima.recipe

raw
1 from calibre.web.feeds.recipes import BasicNewsRecipe
2
3
4 class Tovima(BasicNewsRecipe):
5 title = 'To Vima'
6 __author__ = 'Stelios'
7 description = ' News from Greece'
8 oldest_article = 3
9 publisher = 'To Vima'
10 category = 'news, GR'
11 language = 'el'
12 encoding = 'utf8'
13 cover_url = 'http://www.tovima.gr/Themes/1/Default/Media/Home//small-n-short-logo.jpg'
14 no_stylesheets = True
15 use_embedded_content = False
16 remove_empty_feeds = True
17 extra_css = '''
18 .article_title{font-family :Arial,Helvetica,sans-serif; font-weight: bold; font-size:large;}
19 .article_text{font-family :Arial,Helvetica,sans-serif; font-size:x-small;}
20 '''
21 keep_only_tags = [dict(name='div', attrs={'class': ['article_title']}), dict(name='div', attrs={'class': ['article_text']})]
22 remove_tags = [dict(name='div', attrs={'class': ['article_cat']})]
23 feeds = [
24 ('\u03c0\u03bf\u03bb\u03b9\u03c4\u03b9\u03ba\u03ae', 'http://www.tovima.gr/feed/politics/'),
25 ('\u03bf\u03b9\u03ba\u03bf\u03bd\u03bf\u03bc\u03af\u03b1', 'http://www.tovima.gr/feed/finance/'),
26 ('\u03b3\u03bd\u03ce\u03bc\u03b5\u03c2', 'http://www.tovima.gr/feed/opinions/'),
27 ('blogs', 'http://www.tovima.gr/feed/blogs/'),
28 ('\u03ba\u03cc\u03c3\u03bc\u03bf\u03c2', 'http://www.tovima.gr/feed/world/'),
29 ('science', 'http://www.tovima.gr/feed/science/'),
30 ('\u03ba\u03bf\u03b9\u03bd\u03c9\u03bd\u03af\u03b1', 'http://www.tovima.gr/feed/society/'),
31 ('\u03c0\u03bf\u03bb\u03b9\u03c4\u03b9\u03c3\u03bc\u03cc\u03c2', 'http://www.tovima.gr/feed/culture/'),
32 ('\u03b1\u03b8\u03bb\u03b7\u03c4\u03b9\u03c3\u03bc\u03cc\u03c2', 'http://www.tovima.gr/feed/sports/'),
33 ]