Create script which loads page from my server (with server IP etc.) - all OK, but if I want to click on any link I landed to 404 error page, because link is - some thing like this:
...37.139.17.81:5000/html/privacy-check.php
My code:
from flask import Flask
import requests
application = Flask(__name__)
@application.route("/")
def hello():
result = requests.get("http://ipinfo.info/index.php")
return result.content
if __name__ == "__main__":
application.run(host='0.0.0.0')
Here's a live example :
How I can parse click URL and get this link content?