# -*- 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')]