#!/usr/bin/env python
# vim:fileencoding=utf-8

from calibre.web.feeds.news import BasicNewsRecipe


class Coda(BasicNewsRecipe):
    title = 'Coda'
    __author__ = 'bugmen00t'
    description = 'Coda Story reports on major currents shaping our world from disinformation to authoritarian technologies to the war on science. Coda stays on these stories to reveal why they matter, how they are connected and where they are heading next.'  # noqa: E501
    publisher = 'Natalia Antelava & Ilan Greenberg'
    category = 'blog'
    cover_url = 'https://www.codastory.com/wp-content/uploads/2021/05/AT_thumbnail_512x512.png'
    language = 'en_RU'
    no_stylesheets = False
    remove_javascript = False
    auto_cleanup = False
    oldest_article = 180
    max_articles_per_feed = 50

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

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

    remove_tags = [dict(name='li', attrs={'class': 'material-meta__type'}), dict(name='div', attrs={'class': 'more'})]

    feeds = [('CODA', 'https://www.codastory.com/feed/')]
