Minimal requests example: print your exit IP through the WeProxy HTTP proxy gateway.
- Python 3.9+
- WeProxy credentials from my.we1.town
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txtcp .env.example .envExport credentials (this sample reads process environment, not the .env file directly):
export WEPROXY_USER="your-user"
export WEPROXY_PASS="your-pass"PowerShell:
$env:WEPROXY_USER="your-user"
$env:WEPROXY_PASS="your-pass"Gateway defaults:
Host: gw.weproxy.com.tr
Port: 8989
python src/check_ip.pyimport requests
proxy = "http://USER:PASSWORD@gw.weproxy.com.tr:8989"
proxies = {"http": proxy, "https": proxy}
print(requests.get("https://api.ipify.org", proxies=proxies, timeout=30).text)Full script: src/check_ip.py.
Use panel credentials for the product you purchased — e.g. rotating residential or rotating datacenter. Gateway host/port stay the same.
SOCKS5 requires a SOCKS-capable package and typically requests[socks]; this sample uses HTTP proxy mode.
python · requests · proxy · residential-proxy · socks5 · http-proxy
MIT — see LICENSE.
