| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
class Bugun(BasicNewsRecipe): |
| 7 |
title = 'Yenişafak Gazetesi' |
| 8 |
__author__ = 'thomass' |
| 9 |
oldest_article = 2 |
| 10 |
max_articles_per_feed = 100 |
| 11 |
no_stylesheets = True |
| 12 |
use_embedded_content = False |
| 13 |
encoding = 'ISO 8859-9' # 'UTF-8' |
| 14 |
publisher = 'thomass' |
| 15 |
category = 'news, haberler,TR,gazete' |
| 16 |
language = 'tr' |
| 17 |
publication_type = 'newspaper ' |
| 18 |
conversion_options = {'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': True} |
| 19 |
cover_img_url = 'http://yenisafak.com.tr/resim/logo.gif' |
| 20 |
masthead_url = 'http://yenisafak.com.tr/resim/logo.gif' |
| 21 |
|
| 22 |
keep_only_tags = [dict(name='div', attrs={'id': ['ctghaberdetay2010']})] |
| 23 |
# h1{ font-size:10%;font-weight: bold} '#ctl00_ortayer_haberBaslik{ |
| 24 |
# 'font-size:10%;font-weight: bold'} |
| 25 |
extra_css = ' h1{font-size:20px;font-weight: bold}h2{font-size: small;font-weight: bold}div{font-size: small} ' |
| 26 |
|
| 27 |
remove_tags = [dict(name='div', attrs={'id': ['yasaluyari2010', 'divhaberdetayilisik2010']}), dict(name='font', attrs={'class': ['haberdetaytarih']})] |
| 28 |
|
| 29 |
remove_empty_feeds = True |
| 30 |
|
| 31 |
feeds = [ |
| 32 |
('SonDakika', 'http://yenisafak.com.tr/rss/?xml=anasayfa'), |
| 33 |
('Gündem', 'http://yenisafak.com.tr/rss/?xml=gundem'), |
| 34 |
('Politika', 'http://yenisafak.com.tr/rss/?xml=politika'), |
| 35 |
('Ekonomi', 'http://yenisafak.com.tr/rss/?xml=ekonomi'), |
| 36 |
('Dünya', 'http://yenisafak.com.tr/rss/?xml=dunya'), |
| 37 |
('Aktüel', 'http://yenisafak.com.tr/rss/?xml=aktuel'), |
| 38 |
('Eğitim', 'http://yenisafak.com.tr/rss/?xml=egitim'), |
| 39 |
('Spor', 'http://yenisafak.com.tr/rss/?xml=spor'), |
| 40 |
('Yazarlar', 'http://yenisafak.com.tr/rss/?xml=yazarlar'), |
| 41 |
('Televizyon', 'http://yenisafak.com.tr/rss/?xml=televizyon'), |
| 42 |
('Sağlık', 'http://yenisafak.com.tr/rss/?xml=saglik'), |
| 43 |
('Yurt Haberler', 'http://yenisafak.com.tr/rss/?xml=yurthaberler'), |
| 44 |
('Bilişim', 'http://yenisafak.com.tr/rss/?xml=bilisim'), |
| 45 |
('Diziler', 'http://yenisafak.com.tr/rss/?xml=diziler'), |
| 46 |
('Kültür-Sanat', 'http://yenisafak.com.tr/rss/?xml=kultursanat'), |
| 47 |
('Röportaj', 'http://yenisafak.com.tr/rss/?xml=roportaj'), |
| 48 |
('Sinema', 'http://yenisafak.com.tr/rss/?xml=sinema'), |
| 49 |
('Yorum', 'http://yenisafak.com.tr/rss/?xml=yorum'), |
| 50 |
(' Yeni Şafak Pazar', 'http://yenisafak.com.tr/rss/?xml=pazar'), |
| 51 |
('Yeni Şafak Kitap', 'http://yenisafak.com.tr/rss/?xml=kitap'), |
| 52 |
('Yeni Şafak English', 'http://yenisafak.com.tr/rss/?xml=english'), |
| 53 |
] |