#!/usr/bin/env python # News source: https://www.rtvslo.si # License: GPLv3 # Copyright: 2022, TadejS from calibre.web.feeds.news import BasicNewsRecipe class MMCRTV(BasicNewsRecipe): title = 'MMC RTV Slovenija' __author__ = 'TadejS' description = 'Prvi interaktivni multimedijski portal, MMC RTV Slovenija' oldest_article = 3 max_articles_per_feed = 100 language = 'sl' no_stylesheets = True use_embedded_content = False encoding = 'utf-8' publication_type = 'newspaper' cover_url = 'https://img.rtvslo.si/_static/novi/logo/tvmmc-light-bg.png' keep_only_tags = [ dict(name='header', attrs={'class': 'article-header'}), dict(name='div', attrs={'class': 'article-body'}), ] remove_tags = [ dict(name='div', attrs={'class': 'gallery-grid'}), dict(name='div', attrs={'class': 'gallery'}), dict(name='div', attrs={'class': 'exposed-article'}), dict(name='div', attrs={'class': 'd-lg-none'}), dict(name='div', attrs={'class': 'section-heading'}), ] feeds = [ ('Slovenija', 'https://www.rtvslo.si/feeds/01.xml'), ('Evropska unija', 'https://www.rtvslo.si/feeds/16.xml'), ('Svet', 'https://www.rtvslo.si/feeds/02.xml'), ('Gospodarstvo', 'https://www.rtvslo.si/feeds/04.xml'), ('Okolje', 'https://www.rtvslo.si/feeds/12.xml'), ('Znanost in tehnologija', 'https://www.rtvslo.si/feeds/09.xml'), ('Kultura', 'https://www.rtvslo.si/feeds/05.xml'), ('Šport', 'https://www.rtvslo.si/feeds/03.xml'), ('Zabava', 'https://www.rtvslo.si/feeds/06.xml'), ('Ture avanture', 'https://www.rtvslo.si/feeds/28.xml'), ('Črna kronika', 'https://www.rtvslo.si/feeds/08.xml'), ]