From 6152af251711b5b255c3a8167f8b1ff72e19ef6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 09:52:09 +0200 Subject: Remove telegram and twitter --- webapp.py | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'webapp.py') diff --git a/webapp.py b/webapp.py index 3c213e4..7022e08 100755 --- a/webapp.py +++ b/webapp.py @@ -13,10 +13,7 @@ from collections import OrderedDict from concurrent.futures import ThreadPoolExecutor from flask import Flask, Response - -# from telegram import telegram from rss import buildRSS -from twitter import twitter from zdf import zdf app = Flask(__name__) @@ -40,25 +37,6 @@ def not_found(e): return "Die angeforderte Seite konnte nicht gefunden werden." -@app.route("/twitter/") -def feedTwitter(account): - return rssResponse(twitter(account)) - - -# @app.route("/telegram/") -# def feedTelegram(account): -# content = [{'title': t, 'url': u, 'content': c, 'date': d} -# for t,c,u,d in telegram(account)] -# xml = buildRSS( -# title = 'Telegram: ' + account, -# url = 'https://t.me/s/' + account, -# description = 'The latest entries of the telegram channel of ' + account, -# content = content) -# response = Response(xml, mimetype='text/xml') -# response.headers['Access-Control-Allow-Origin'] = '*' -# return response - - @app.route("/zdf/") def filterZDFFeed(feed): return rssResponse(zdf(feed)) -- cgit v1.2.3