#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe


class Telepolis(BasicNewsRecipe):
    title          = 'Telepolis'
    oldest_article = 7
    max_articles_per_feed = 100
    auto_cleanup   = True
    recursions = 10
    language = 'de'

    feeds          = [
        ('Telepolis', 'https://www.heise.de/tp/news-atom.xml'),
    ]

    def is_link_wanted(self, url, tag):
        return tag['class'] == 'seite_weiter'
