repl.it
Python

No description

fork
loading
Files
  • main.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
from bottle import run, route
from requests import get

@route('/')
def explainierify():
  return 'Welcome to my random proxy site. I might start working on a github repo if this is fun enough...\n\nGo to <a href=\'/https://catbull.com/alamut/Bibliothek/The_Compleat_Recreational_Drugs_Handbook.pdf\'>here</a> for an example'

@route('/<site:path>')
def proxierify(site):
  return get('https://'+site).content

run(host='0.0.0.0', port=8080)
?