mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Hurriyet by Adrian Tennessee
This commit is contained in:
parent
bbee85c952
commit
459faab7d1
69
recipes/hurriyet.recipe
Normal file
69
recipes/hurriyet.recipe
Normal file
@ -0,0 +1,69 @@
|
||||
##
|
||||
# Title: Hürriyet recipe for calibre
|
||||
# Author: Adrian Tennessee
|
||||
# Contact: adrian.tennessee at domainthatnobodytakes.com
|
||||
##
|
||||
# License: GNU General Public License v3 - http://www.gnu.org/copyleft/gpl.html
|
||||
# Copyright: Copyright 2014 Adrian Tennessee
|
||||
##
|
||||
# Written: 2015-07-11
|
||||
# Last Edited: 2015-07-11
|
||||
##
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class Hurriyet(BasicNewsRecipe):
|
||||
__author__ = 'Adrian Tennessee (adrian.tennessee at domainthatnobodytakes.com)'
|
||||
__license__ = 'GPLv3'
|
||||
__copyright__ = '2015, Adrian Tennessee <adrian.tennessee at domainthatnobodytakes.com)'
|
||||
|
||||
title = u'Hürriyet'
|
||||
language = 'tr'
|
||||
description = u'Hürriyet web site ebook'
|
||||
publisher = 'Doğan Media Group'
|
||||
category = 'news'
|
||||
cover_url = 'https://upload.wikimedia.org/wikipedia/en/4/4f/H%C3%BCrriyet_ilk_sayi.jpg'
|
||||
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 50
|
||||
use_embedded_content = False
|
||||
no_stylesheets = True
|
||||
remove_javascript = True
|
||||
encoding = None
|
||||
|
||||
# keep main image in its own line
|
||||
extra_css = '.detailImage { clear: left; } .detailSpot { clear: left; }'
|
||||
|
||||
keep_only_tags = [
|
||||
# title
|
||||
{'class': 'detailTop clr'},
|
||||
# image
|
||||
{'class': 'detailImage clr'},
|
||||
# text
|
||||
{'class': 'detailText'},
|
||||
]
|
||||
|
||||
feeds = [
|
||||
(u'Anasayfa', u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=1'),
|
||||
(u'Gündem',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2'),
|
||||
(u'Ekonomi',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=4'),
|
||||
(u'Magazin',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2035'),
|
||||
(u'Spor',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=14'),
|
||||
(u'Planet',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2249'),
|
||||
(u'Teknoloji',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2158'),
|
||||
(u'Sağlık',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2446'),
|
||||
(u'Kültür Sanat',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2451'),
|
||||
(u'Sinema',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2437'),
|
||||
(u'Astroloji',
|
||||
u'http://rss.hurriyet.com.tr/rss.aspx?sectionId=2409'),
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user