View Single Post
Old 11-25-2018, 06:11 AM   #1
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 119
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /Köln
Device: prs-650 / prs-350 /kindle 3
Recipe - Rubikon.de [German]

After 6 Years of absence here is my new one ;-))


Code:
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1543143461(BasicNewsRecipe):
    title          = 'Rubikon.de'
    description = 'Nachrichten anders/neutral beleuchtet'
    __author__ = 'schuster'
    __license__ = 'GPL v3'
    version = 1
    oldest_article = 7
    max_articles_per_feed = 100
    auto_cleanup   = True
    no_stylesheets = True
    use_embedded_content = False
    language = 'de'
    remove_javascript = True
    timefmt = ' [%d.%m.%Y]'
    masthead_url = 'https://www.rubikon.news/assets/logo-dd0fcd373a0c872bb432f7596d9e700155c5d7fa07ec99a3777d44621e8c61fe.svg'

    
    remove_tags = [
                       dict(id=['download-pdf']),
                       dict(id=['read-article']),
                       dict(name='div', attrs={
                        'id': ['print_options', 'print_head']}),
                   dict(name='div', attrs={'class': ['article-meta']}),
                   dict(name='div', attrs={'class': ['article-end']}),
                   dict(name='span', attrs={'class': ['lens']})]

    feeds          = [
        ('Alle Artikel', 'https://www.rubikon.news/artikel.atom'),
    ]
Enjoy !
schuster is offline   Reply With Quote