diff options
Diffstat (limited to 'webapp.py')
-rwxr-xr-x | webapp.py | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -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)) |