| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
class Bugun(BasicNewsRecipe): |
| 7 |
title = 'BUGÜN Gazetesi' |
| 8 |
__author__ = 'thomass' |
| 9 |
oldest_article = 2 |
| 10 |
max_articles_per_feed = 100 |
| 11 |
use_embedded_content = False |
| 12 |
encoding = 'UTF-8' |
| 13 |
publisher = 'thomass' |
| 14 |
category = 'news, haberler,TR,gazete' |
| 15 |
language = 'tr' |
| 16 |
publication_type = 'newspaper ' |
| 17 |
# h1{ font-size:10%;font-weight: bold} '#ctl00_ortayer_haberBaslik{ |
| 18 |
# 'font-size:10%;font-weight: bold'} |
| 19 |
extra_css = ' div{font-size: small} h2{font-size: small;font-weight: bold} #ctl00_ortayer_haberBaslik{font-size:20px;font-weight: bold} ' |
| 20 |
# introduction{} .story-feature{display: block; padding: 0; border: 1px |
| 21 |
# solid; width: 40%; font-size: small} .story-feature h2{text-align: |
| 22 |
# center; text-transform: uppercase} ' |
| 23 |
conversion_options = {'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': True} |
| 24 |
cover_img_url = 'http://www.bugun.com.tr/images/bugunLogo2011.png' |
| 25 |
masthead_url = 'http://www.bugun.com.tr/images/bugunLogo2011.png' |
| 26 |
|
| 27 |
keep_only_tags = [ |
| 28 |
dict(name='h1', attrs={'class': ['haberBaslik']}), |
| 29 |
dict(name='h2', attrs={'class': ['haberOzet']}), |
| 30 |
dict(name='div', attrs={'class': ['haberGriDivvvv']}), |
| 31 |
dict(name='div', attrs={'id': ['haberTextDiv']}), |
| 32 |
] |
| 33 |
|
| 34 |
remove_empty_feeds = True |
| 35 |
|
| 36 |
feeds = [ |
| 37 |
('Son Dakika', 'http://www.bugun.com.tr/haberler.xml'), |
| 38 |
('Yazarlar', 'http://www.bugun.com.tr/rss/yazarlar.xml'), |
| 39 |
('Gündem', 'http://www.bugun.com.tr/rss/gundem.xml'), |
| 40 |
('Ekonomi', 'http://www.bugun.com.tr/rss/ekonomi.xml'), |
| 41 |
('Spor', 'http://www.bugun.com.tr/rss/spor.xml'), |
| 42 |
('Magazin', 'http://www.bugun.com.tr/rss/magazin.xml'), |
| 43 |
('Teknoloji', 'http://www.bugun.com.tr/rss/teknoloji.xml'), |
| 44 |
('Yaşam', 'http://www.bugun.com.tr/rss/yasam.xml'), |
| 45 |
('Medya', 'http://www.bugun.com.tr/rss/medya.xml'), |
| 46 |
('Dünya', 'http://www.bugun.com.tr/rss/dunya.xml'), |
| 47 |
('Politika', 'http://www.bugun.com.tr/rss/politika.xml'), |
| 48 |
('Sağlık', 'http://www.bugun.com.tr/rss/saglik.xml'), |
| 49 |
('Tarifler', 'http://www.bugun.com.tr/rss/yemek-tarifi.xml'), |
| 50 |
] |