From ee6554871d4d914f595787abb356285b834724e2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Nov 2011 08:25:25 +0530 Subject: [PATCH] Skylife by thomass --- recipes/skylife.recipe | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes/skylife.recipe diff --git a/recipes/skylife.recipe b/recipes/skylife.recipe new file mode 100644 index 0000000000..7abd2f1f42 --- /dev/null +++ b/recipes/skylife.recipe @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- + +from calibre.web.feeds.news import BasicNewsRecipe + +class THY (BasicNewsRecipe): + + title = u'Skylife' + __author__ = u'thomass' + description = ' Türk Hava Yollarının yayınladığı aylık kültür dergisi (Fotoğrafları da içermesini isterseniz keep_only_tag''da belirttiğim kodu da ekleyin) ' + oldest_article =32 + max_articles_per_feed =100 + no_stylesheets = True + #delay = 1 + #use_embedded_content = False + encoding = 'utf-8' + publisher = 'thomass' + category = 'genel kültür, gezi,Türkçe' + language = 'tr' + publication_type = 'magazine' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + keep_only_tags = [dict(name='h3', attrs={'id':['hpbaslik']}),dict(name='p', attrs={'id':['pyayin','hspot','picerik']})] #Fotoğrafları da eklemek için: dict(name='div', attrs={'id':['divResimler']}) + masthead_url = 'http://www.turkishairlines.com/static/img/skylife/logo.png' + remove_empty_feeds= True + remove_attributes = ['width','height'] + + feeds = [( u'SKYLIFE', u'http://feed43.com/7783278414103376.xml')]