# -*- coding: utf-8 -*- from calibre.web.feeds.news import BasicNewsRecipe class Bugun(BasicNewsRecipe): title = 'Yenişafak Gazetesi' __author__ = 'thomass' oldest_article = 2 max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = False encoding = 'ISO 8859-9' # 'UTF-8' publisher = 'thomass' category = 'news, haberler,TR,gazete' language = 'tr' publication_type = 'newspaper ' conversion_options = {'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': True} cover_img_url = 'http://yenisafak.com.tr/resim/logo.gif' masthead_url = 'http://yenisafak.com.tr/resim/logo.gif' keep_only_tags = [dict(name='div', attrs={'id': ['ctghaberdetay2010']})] # h1{ font-size:10%;font-weight: bold} '#ctl00_ortayer_haberBaslik{ # 'font-size:10%;font-weight: bold'} extra_css = ' h1{font-size:20px;font-weight: bold}h2{font-size: small;font-weight: bold}div{font-size: small} ' remove_tags = [dict(name='div', attrs={'id': ['yasaluyari2010', 'divhaberdetayilisik2010']}), dict(name='font', attrs={'class': ['haberdetaytarih']})] remove_empty_feeds = True feeds = [ ('SonDakika', 'http://yenisafak.com.tr/rss/?xml=anasayfa'), ('Gündem', 'http://yenisafak.com.tr/rss/?xml=gundem'), ('Politika', 'http://yenisafak.com.tr/rss/?xml=politika'), ('Ekonomi', 'http://yenisafak.com.tr/rss/?xml=ekonomi'), ('Dünya', 'http://yenisafak.com.tr/rss/?xml=dunya'), ('Aktüel', 'http://yenisafak.com.tr/rss/?xml=aktuel'), ('Eğitim', 'http://yenisafak.com.tr/rss/?xml=egitim'), ('Spor', 'http://yenisafak.com.tr/rss/?xml=spor'), ('Yazarlar', 'http://yenisafak.com.tr/rss/?xml=yazarlar'), ('Televizyon', 'http://yenisafak.com.tr/rss/?xml=televizyon'), ('Sağlık', 'http://yenisafak.com.tr/rss/?xml=saglik'), ('Yurt Haberler', 'http://yenisafak.com.tr/rss/?xml=yurthaberler'), ('Bilişim', 'http://yenisafak.com.tr/rss/?xml=bilisim'), ('Diziler', 'http://yenisafak.com.tr/rss/?xml=diziler'), ('Kültür-Sanat', 'http://yenisafak.com.tr/rss/?xml=kultursanat'), ('Röportaj', 'http://yenisafak.com.tr/rss/?xml=roportaj'), ('Sinema', 'http://yenisafak.com.tr/rss/?xml=sinema'), ('Yorum', 'http://yenisafak.com.tr/rss/?xml=yorum'), (' Yeni Şafak Pazar', 'http://yenisafak.com.tr/rss/?xml=pazar'), ('Yeni Şafak Kitap', 'http://yenisafak.com.tr/rss/?xml=kitap'), ('Yeni Şafak English', 'http://yenisafak.com.tr/rss/?xml=english'), ]