mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# -*- 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) ' # noqa
|
||
oldest_article = 32
|
||
max_articles_per_feed = 100
|
||
no_stylesheets = True
|
||
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
|
||
}
|
||
# Fotoğrafları da eklemek için: dict(name='div',
|
||
# attrs={'id':['divResimler']})
|
||
keep_only_tags = [dict(name='h3', attrs={'id': ['hpbaslik']}), dict(
|
||
name='p', attrs={'id': ['pyayin', 'hspot', 'picerik']})]
|
||
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')]
|