Skip to content

Instantly share code, notes, and snippets.

@kanzure
Created August 24, 2014 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanzure/8d8c1582883104e8785c to your computer and use it in GitHub Desktop.
Save kanzure/8d8c1582883104e8785c to your computer and use it in GitHub Desktop.
http server to fetch content through ezproxy servers
from flask import (
Flask,
request,
)
app = Flask(__name__)
@app.route("/plsget")
def plsget():
data = request.get_json(force=True)
response = fetch_by_ezproxy(data["url"])
return response.content
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment