summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
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))