Minimal HTTP request example using rnet (v3.0.0-rc17) with browser emulation and authenticated rotating proxies.
- Python >= 3.14
uvrecommended (or classicpip)- A
proxies.txtfile at root with one proxy per line:http://user:pwd@ip:portip:port:user:pwd(auto-converted)
With uv (recommended):
uv venv
uv pip install -r pyproject.tomlWith pip:
python -m venv .venv
.venv\Scripts\activate
pip install -r pyproject.tomluv run main.pyThe script:
- Loads a random proxy from
proxies.txt - Configures an rnet client with Chrome 142 emulation on Windows
- Makes a GET request to https://probe.velys.software/ and displays the response
main.py- Main logic (proxy loading, rnet client, test request)pyproject.toml- Metadata and dependencies (aiofiles,rnet)proxies.txt- Proxy list (create your own, not versioned)
- Don't commit
proxies.txtif it contains sensitive credentials - For connection errors, verify proxy format and HTTP protocol support
- Change the test URL in
main.pyas needed