# vim:fileencoding=UTF-8
from __future__ import unicode_literals

from calibre.web.feeds.news import BasicNewsRecipe


class Dingoo(BasicNewsRecipe):
    language = 'ru'
    __author__ = 'bug_me_not'
    title = u'\u0418\u043d\u043e\u041f\u0440\u0435\u0441\u0441\u0430'
    description = 'Иностранная пресса о России и не только'
    cover_url = u'http://static.inopressa.ru/img/inopressa-logo-light.gif'
    language = 'ru'
    oldest_article = 14
    max_articles_per_feed = 200

    no_stylesheets = False
    remove_javascript = True
    auto_cleanup = True

    feeds = [(u'\u043e \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e',
              u'http://pda.inopressa.ru/rss')]

    remove_tags_before = dict(name='div', attrs={'class': 'article'})
    remove_tags_after = dict(name='div', attrs={'class': 'source'})
