Run the proxy: cargo run Run the python program with the env variable ALL_PROXY=http://localhost:5000 python test.py