summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2024-05-01 09:52:09 +0200
committerAndré Glüpker <git@wgmd.de>2024-05-01 09:52:09 +0200
commit6152af251711b5b255c3a8167f8b1ff72e19ef6c (patch)
tree06c4201536a0afce40c1651c6fcb6f67ac6ef586 /webapp.py
parent664ceffea80fe3802b69a36e38bf924e8edf5fe3 (diff)
downloadrss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.tar.gz
rss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.tar.bz2
rss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.zip
Remove telegram and twitter
Diffstat (limited to 'webapp.py')
-rwxr-xr-xwebapp.py22
1 files changed, 0 insertions, 22 deletions
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/<account>")
-def feedTwitter(account):
- return rssResponse(twitter(account))
-
-
-# @app.route("/telegram/<account>")
-# 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/<path:feed>")
def filterZDFFeed(feed):
return rssResponse(zdf(feed))