WHY PYTHON + PROXY POLAND
Python is the most popular language for web scraping, data collection, and automation. By routing your Python requests through Proxy Poland's 4G mobile proxies, you get genuine mobile carrier IPs that bypass anti-bot systems and geo-restrictions.
SETUP INSTRUCTIONS
Install Requests Library
Install the requests library or your preferred HTTP client:
pip install requests # For SOCKS5 support: pip install requests[socks] # For async scraping: pip install aiohttp
Get Proxy Credentials
Sign up at proxypoland.com and get your proxy IP, port, username, and password.
Configure HTTP Proxy (requests)
Route requests through the HTTP proxy:
import requests
proxies = {
'http': 'http://username:password@proxy-ip:port',
'https': 'http://username:password@proxy-ip:port',
}
response = requests.get(
'https://httpbin.org/ip',
proxies=proxies
)
print(response.json())
# Should show Polish mobile IPConfigure SOCKS5 Proxy
Use SOCKS5 for full traffic routing including DNS:
import requests
proxies = {
'http': 'socks5://username:password@proxy-ip:port',
'https': 'socks5://username:password@proxy-ip:port',
}
response = requests.get(
'https://httpbin.org/ip',
proxies=proxies
)
print(response.json())Use with Scrapy
Configure Scrapy to use mobile proxies:
# scrapy settings.py
HTTP_PROXY = 'http://username:password@proxy-ip:port'
DOWNLOADER_MIDDLEWARES = {
'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware': 110,
}
# Or use ROTATING_PROXY_LIST:
ROTATING_PROXY_LIST = [
'http://username:password@proxy-ip:port',
]Add IP Rotation
Rotate IP between scraping sessions using the rotation API:
import requests
def rotate_ip(proxy_ip, port, username, password):
"""Trigger IP rotation via Proxy Poland API"""
response = requests.get(
f'http://{proxy_ip}:{port}/rotate',
auth=(username, password)
)
return response.json()
# Rotate before each scraping batch
new_ip = rotate_ip('proxy-ip', 'port', 'user', 'pass')
print(f'New IP: {new_ip}')Verify Your IP
Check that your requests are routed through the proxy:
import requests
proxies = {
'http': 'http://username:password@proxy-ip:port',
'https': 'http://username:password@proxy-ip:port',
}
response = requests.get('https://httpbin.org/ip', proxies=proxies)
print(response.json()['origin'])
# Should show Polish mobile carrier IPPRO TIPS
Use SOCKS5 for DNS leak prevention in sensitive scraping tasks
Implement retry logic with exponential backoff for rate-limited sites
Rotate IPs between scraping batches to avoid IP-based bans
Use aiohttp with asyncio for high-throughput concurrent scraping
Set realistic User-Agent headers to complement the mobile IP
WORKS GREAT FOR
FAQ
Which Python library works best with mobile proxies?+
requests is the simplest choice for basic scraping. For async workloads use aiohttp. For large-scale scraping frameworks, Scrapy with a proxy middleware is ideal.
Can I use SOCKS5 with Python?+
Yes. Install requests[socks] (pip install requests[socks]) and use socks5://user:pass@host:port as the proxy URL. SOCKS5 routes all traffic including DNS.
How do I handle proxy authentication in Python?+
Pass credentials directly in the proxy URL: http://username:password@host:port or use the proxies dict with requests. Both HTTP and SOCKS5 authentication are supported.
Can I use these proxies with Scrapy?+
Yes. Set ROTATING_PROXY_LIST or configure a custom downloader middleware with the proxy credentials. Scrapy's built-in proxy support works seamlessly with our proxies.
How fast can I scrape with Python + mobile proxies?+
Our 4G connections provide 30-100 Mb/s throughput. With async Python (aiohttp + asyncio), you can handle dozens of concurrent requests through a single proxy.