Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fixed proxy
from flask import Flask
from requests import get
app = Flask('__main__')
@app.route('/', defaults={'path': ''})
def proxy(path):
return get(f'{SITE_NAME}{path}').content'', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment