acm-proxy

acm library proxy
git clone https://git.parazyd.org/acm-proxy
Log | Files | Refs | README

commit 89b505d5d0c82a4c5792339cdeb2e5778bfb472e
parent de1364b0c7e093357a91091d775e24a26a510fd2
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 31 Mar 2020 12:29:19 +0200

Add fallback route for every link.

Diffstat:
Mproxy.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/proxy.py b/proxy.py @@ -6,7 +6,11 @@ from subprocess import check_output app = Flask(__name__) def get_page(page): - return check_output(["node", "scrape.js", page]) + return check_output(["node", "scrape.js", 'https://dl.acm.org/' + page]) + +@app.route('/<path:dummy>') +def index(dummy): + return get_page(dummy) @app.route('/') def main():