Created
April 3, 2020 01:02
-
-
Save zurgeg/935d94148f4da4122d864d478494599f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
ans = input('Type A if on RasPi/Mac or B if on Windows') | |
if ans.lower() == 'a': | |
os.system('pip3 install --user flask') | |
import flask | |
else: | |
os.system('pip install flask') | |
import flask | |
app = flask.Flask(__app__) | |
@app.route('/') | |
def home(): | |
return '<h1>Welcome to ProxyX</h1><br><p>only on switch</p><br><a href=\'www.google.com\'>Google</a>' | |
app.run(host='0.0.0.0') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment