Debian Codegraph @

recipes/sabah.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class AdvancedUserRecipe1253477125(BasicNewsRecipe):
5 title = 'Sabah'
6 __author__ = 'Deniz O\u011fuz'
7 language = 'tr'
8 oldest_article = 1
9 max_articles_per_feed = 20
10 cover_url = 'http://www.sabah.com.tr/c/sb/i/sabah_logo.gif'
11 no_stylesheets = True
12 remove_tags = [dict(name='div', attrs={'style': ['width: 200px', 'border-top: #d8d8d8 1px dotted', 'width: 200px; margin-right: 5px', 'padding-top: 1px']})]
13 keep_only_tags = [dict(name='div', attrs={'class': ['haber line_height_def', 'haber haber_renk line_height_def']})]
14 extra_css = '''
15 body{font-family:Arial,Helvetica,sans-serif; font-size:small; align:left}
16 h1{font-size:large;}
17 .sh{font-size:large; font-weight:bold}
18 .cap{font-size:xx-small; }
19 .lu{font-size:xx-small; }
20 .ds{font-size:xx-small; }
21 .mvb{font-size:xx-small;}
22 .by1{font-size:x-small; color:#666666}
23 .byd{font-size:x-small;}
24 '''
25 feeds = [
26 ('Son 24 Saat', 'http://www.sabah.com.tr/rss/Son24Saat.xml'),
27 ('Ekonomi', 'http://www.sabah.com.tr/rss/Ekonomi.xml'),
28 ('G\xfcndem', 'http://www.sabah.com.tr/rss/Gundem.xml'),
29 ('Siyaset', 'http://www.sabah.com.tr/rss/Siyaset.xml'),
30 ('Yazarlar', 'http://www.sabah.com.tr/rss/Yazarlar.xml'),
31 ('D\xfcnya', 'http://www.sabah.com.tr/rss/Dunya.xml'),
32 ('Teknoloji', 'http://www.sabah.com.tr/rss/Teknoloji.xml'),
33 ('Spor', 'http://www.sabah.com.tr/rss/Spor.xml'),
34 ('G\xfcn\xfcn \u0130\xe7inden', 'http://www.sabah.com.tr/rss/gununicinden.xml'),
35 ('Emlak', 'http://www.sabah.com.tr/rss/Emlak.xml'),
36 ]