#!/usr/bin/env python
# vim:fileencoding=utf-8
# https://manual.calibre-ebook.com/news_recipe.html
from __future__ import absolute_import, division, print_function, unicode_literals

from calibre.web.feeds.news import BasicNewsRecipe

'''
Ingeniøren.dk
'''


class Ing_dk(BasicNewsRecipe):
    __author__ = 'CoderAllan.github.com'
    title = 'Ingeniøren'
    language = 'da'
    description = 'Nyheder om teknologi og naturvidenskab for fagfolk og interesserede; artikler, blogs, debat, infografik, video.'
    category = 'newspaper, news, localnews, sport, culture, Denmark'
    oldest_article = 7
    max_articles_per_feed = 50
    auto_cleanup = True

    keep_only_tags = [
        dict(name="div", attrs={'class': 'menu-article-current-title'}),
        dict(name="section", attrs={'class': 'byline'}),
        dict(name="section", attrs={'class': 'body'}),
    ]

    feeds          = [
        ('Biotek', 'https://ing.dk/rss/term/341'),
        ('Byggeri', 'https://ing.dk/rss/term/356'),
        ('Elektronik', 'https://ing.dk/rss/term/355'),
        ('Energi og Miljø', 'https://ing.dk/rss/term/354'),
        ('Forskning', 'https://ing.dk/rss/term/353'),
        ('Fødevare', 'https://ing.dk/rss/term/352'),
        ('Karriere', 'https://ing.dk/rss/term/350'),
        ('Produktion', 'https://ing.dk/rss/term/349'),
        ('Rumfart', 'https://ing.dk/rss/term/348'),
        ('Transport', 'https://ing.dk/rss/term/347'),
        ('Blogs', 'https://ing.dk/rss/blogs'),
        ('Spørg Scientariet', 'https://ing.dk/rss/term/287'),
    ]
