diff options
author | André Glüpker <git@wgmd.de> | 2024-05-01 09:52:09 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2024-05-01 09:52:09 +0200 |
commit | 6152af251711b5b255c3a8167f8b1ff72e19ef6c (patch) | |
tree | 06c4201536a0afce40c1651c6fcb6f67ac6ef586 /webapp.py | |
parent | 664ceffea80fe3802b69a36e38bf924e8edf5fe3 (diff) | |
download | rss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.tar.gz rss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.tar.bz2 rss-feeds-6152af251711b5b255c3a8167f8b1ff72e19ef6c.zip |
Remove telegram and twitter
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)) |