url = '{}/p/{}'.format(proxy, target_url)
return requests.get(url, stream=True)
if __name__ == '__main__':
    app.run()
How to write a proxy pool server (when a request comes, choose a proxy to get url content) in python?