calibre/recipes/bsi_news.recipe
2023-01-19 08:41:43 +05:30

64 lines
2.7 KiB
Python

#!/usr/bin/env python
from __future__ import absolute_import, division, print_function, unicode_literals
from calibre.web.feeds.news import BasicNewsRecipe
class germanyBSI(BasicNewsRecipe):
# Title of the Recipe
# title = 'News des Bundesamt für Sicherheit in der Informationstechnik'
title = 'BSI News - DE'
cover_url = 'https://www.bsi.bund.de/SiteGlobals/Frontend/Images/BSI/logo.png'
# Author
__author__ = 'Volker Heggemann, VoHe'
# oldest article to download (in days) ---- can be edit by user
oldest_article = 7
# describes itself, ---- can be edit by user
max_articles_per_feed = 100
# speed up the download on fast computers be careful (I test max.20)
# ---- can be edit by user
simultaneous_downloads = 10
# description, some Reader show this in titlepage
description = u'News from BSI'
# Who published the content?
publisher = u'Newsfeeds des BSI'
# What is the content of?
category = u'Sie erfahren, wenn neue Nachrichten auf der Internetseite des BSI veröffentlicht werden'
# describes itself, ---- can be edit by user
use_embedded_content = False
# describes itself, ---- can be edit by user
language = 'de'
# encoding of content. e.g. utf-8, None, ...
# ---- can be edit by user
encoding = None # 'utf-8' doesn't work here
# Removes javascript- why keep this, we only want static content
remove_javascript = True
# Removes empty feeds - why keep them!?
remove_empty_feeds = True
# remove the rubbish (in ebook)
auto_cleanup = True
# now the content description and URL follows
# feel free to add, wipe out what you need ---- can be edit by user
#
# some of this are double
#
#
# Make some tests, may you first comment all of them out, and step by step you add what you'll need?
#
feeds = [
('BSI - Germany - Sicherheitshinweise des Buerger-CERT',
'https://www.bsi-fuer-buerger.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml'
),
('BSI - Germany - Aktuelle Informationen BSI f\xfcr B\xfcrger',
'https://www.bsi-fuer-buerger.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_Buerger_aktuelle_Informationen.xml'
),
('Kurzinformationen des CERT-Bund zu Sicherheitsl\xfccken und Schwachstellen in IT-Systemen',
'https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml'
),
('BSI - Germany - RSS-Newsfeed (Presse-, Kurzmitteilungen und Veranstaltungshinweise)',
'https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed.xml'
),
]