Debian Codegraph @

recipes/star_gazetesi.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class Star(BasicNewsRecipe):
5 title = 'Star Gazetesi'
6 __author__ = 'thomass'
7 description = "Yeni Türkiye'nin Gazetesi"
8 oldest_article = 1
9 max_articles_per_feed = 10
10 no_stylesheets = True
11 publisher = 'Star Media Group'
12 category = 'Güncel, Haber, Türkçe'
13 language = 'tr'
14 publication_type = 'newspaper'
15 cover_img_url = 'http://www.stargazete.com/starnew/img/starlogo.png'
16 masthead_url = 'http://www.stargazete.com/starnew/img/starlogo.png'
17 remove_empty_feeds = True
18 compress_news_images = True
19
20 # h1 and h2 tag classes respectively
21 extra_css = '.title-1 {font-size: 20px; color: #ed0000; text-align: center;}'
22 extra_css += '.title-2 {font-size: 16px;}'
23
24 keep_only_tags = [
25 dict(name='h1', attrs={'class': 'title-1'}),
26 dict(name='h2', attrs={'class': 'title-2'}),
27 dict(name='div', attrs={'class': 'time'}),
28 dict(name='img', attrs={'class': 'margin-bottom-lg'}),
29 dict(name='div', attrs={'class': 'detay'}),
30 ]
31
32 feeds = [
33 ('MANSET', 'http://www.star.com.tr/rss/mansetler.xml'),
34 ('GÜNCEL', 'http://www.star.com.tr/rss/guncel.xml'),
35 ('POLİTİKA', 'http://www.star.com.tr/rss/politika.xml'),
36 ('EKONOMİ', 'http://www.star.com.tr/rss/ekonomi.xml'),
37 ('DÜNYA', 'http://www.star.com.tr/rss/dunya.xml'),
38 ('SON DAKİKA', 'http://www.star.com.tr/rss/sondakika.xml'),
39 ('YAZARLAR', 'http://www.star.com.tr/rss/yazarlar.xml'),
40 ('SPOR', 'http://www.star.com.tr/rss/spor.xml'),
41 ('SİNEMA', 'http://www.star.com.tr/rss/sinema.xml'),
42 ('SANAT', 'http://www.star.com.tr/rss/sanat.xml'),
43 ('MAGAZİN', 'http://www.star.com.tr/rss/magazin.xml'),
44 ('MEDYA', 'http://www.star.com.tr/rss/medya.xml'),
45 ('SAĞLIK', 'http://www.star.com.tr/rss/saglik.xml'),
46 ('TEKNOLOJİ', 'http://www.star.com.tr/rss/teknoloji.xml'),
47 ('AÇIK GÖRÜŞ', 'http://www.star.com.tr/rss/acikgorus.xml'),
48 ('PAZAR', 'http://www.star.com.tr/rss/pazar.xml'),
49 ('CUMARTESİ', 'http://www.star.com.tr/rss/cumartesi.xml'),
50 ('DİZİ', 'http://www.star.com.tr/rss/dizi.xml'),
51 ('ANKARA', 'http://www.star.com.tr/rss/ankara.xml'),
52 ('MEMURLAR', 'http://www.star.com.tr/rss/memurlar.xml'),
53 ('OTO HAYAT', 'http://www.star.com.tr/rss/otohayat.xml'),
54 ]