calibre/recipes/skylife.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

32 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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