# Python Requests Proxy Setup (Video)

> Video guide, 0:59: use a proxy in Python with requests. Copy one line from the QuanticData dashboard, read it from an environment variable, print the exit IP.

[Home](https://quanticdata.io/) / [Videos](https://quanticdata.io/videos/) / Python Requests Proxy Setup

# Use a proxy in Python with requests: video guide

0:59 · Nov 22, 2026 · English captions

A 0:59 screen recording with voice and captions: pick a country in the QuanticData endpoint generator, set the output format to the URL form that requests expects, generate and copy one line, then a short Python script that reads it from an environment variable, passes it for http and https and prints the exit IP and its country.

The long version in writing: [How to use a proxy with Python requests: syntax, auth, rotation and pitfalls](https://quanticdata.io/blog/how-to-use-a-proxy-with-python-requests/).

## Chapters

1. [0:00](https://quanticdata.io/videos/python-requests-proxy/?t=0) · A proxy in requests
2. [0:06](https://quanticdata.io/videos/python-requests-proxy/?t=6) · Pick the country
3. [0:20](https://quanticdata.io/videos/python-requests-proxy/?t=20) · The URL format
4. [0:32](https://quanticdata.io/videos/python-requests-proxy/?t=32) · The script
5. [0:48](https://quanticdata.io/videos/python-requests-proxy/?t=48) · Run it

## Transcript

The captions of the video, line by line. Click a time to jump there.

1. [0:00](https://quanticdata.io/videos/python-requests-proxy/?t=0) · Use a proxy in Python with requests.
2. [0:02](https://quanticdata.io/videos/python-requests-proxy/?t=2) · Copy one line from your dashboard, and run a short script.
3. [0:06](https://quanticdata.io/videos/python-requests-proxy/?t=6) · Open your plan from My proxies.
4. [0:09](https://quanticdata.io/videos/python-requests-proxy/?t=9) · In the endpoint generator, pick the country you need.
5. [0:12](https://quanticdata.io/videos/python-requests-proxy/?t=12) · It is written into the username, so your code stays the same.
6. [0:16](https://quanticdata.io/videos/python-requests-proxy/?t=16) · Keep Rotating for a new IP on every request.
7. [0:20](https://quanticdata.io/videos/python-requests-proxy/?t=20) · Set the output format to the URL form.
8. [0:23](https://quanticdata.io/videos/python-requests-proxy/?t=23) · That is what requests expects: login, host and port in one line.
9. [0:28](https://quanticdata.io/videos/python-requests-proxy/?t=28) · Generate one line, and copy it.
10. [0:32](https://quanticdata.io/videos/python-requests-proxy/?t=32) · In your script, read it from an environment variable.
11. [0:35](https://quanticdata.io/videos/python-requests-proxy/?t=35) · Pass it for both http and https.
12. [0:39](https://quanticdata.io/videos/python-requests-proxy/?t=39) · The request goes to our IP echo endpoint: free, with no API key.
13. [0:44](https://quanticdata.io/videos/python-requests-proxy/?t=44) · The script prints the exit IP and its country.
14. [0:48](https://quanticdata.io/videos/python-requests-proxy/?t=48) · Set QD_PROXY to your line, and run it.
15. [0:53](https://quanticdata.io/videos/python-requests-proxy/?t=53) · The full API reference is at quanticdata.io/docs.

## Where to go next

- [How to use a proxy with Python requests: syntax, auth, rotation and pitfalls](https://quanticdata.io/blog/how-to-use-a-proxy-with-python-requests/)
- [Residential proxies](https://quanticdata.io/residential-proxies/)
- [Proxy locations by country](https://quanticdata.io/proxies/)
- [All QuanticData video guides](https://quanticdata.io/videos/)

## Rotating or sticky, from one endpoint

Residential, mobile and datacenter proxies with country targeting, rotating or sticky sessions, HTTP or SOCKS5, built in the endpoint generator or over the API.

[Start free — $2/month included](https://quanticdata.io/signup/?utm_source=videos&utm_medium=website&utm_campaign=videos-end&utm_content=python-requests-proxy) · [All video guides](https://quanticdata.io/videos/)

## More video guides

- [Test a proxy with curl](https://quanticdata.io/videos/curl-proxy-test/): 1:00 · Watch the video
- [Run Playwright through a proxy in Node.js](https://quanticdata.io/videos/playwright-node-proxy/): 0:57 · Watch the video
- [Rotating vs sticky proxies](https://quanticdata.io/videos/rotating-vs-sticky-proxies/): 0:54 · Watch the video
- [Generate proxies from your code with one API key](https://quanticdata.io/videos/api-key-generate-proxies/): 0:51 · Watch the video
- [Residential proxies quick start](https://quanticdata.io/videos/residential-proxies-quick-start/): 0:57 · Watch the video
- [Proxy country targeting](https://quanticdata.io/videos/proxy-country-targeting/): 0:56 · Watch the video

---

Source: https://quanticdata.io/videos/python-requests-proxy/ · Site index for AI: https://quanticdata.io/llms.txt
