Skip to main content

How to use Infatica Residential proxy with Python

Once you have created a proxy list at Infatica, you can use a proxy with Python.

Python example:

# In this example a query to is performed from the Infatica proxy.
import urllib.request
import random
# Change the proxy login, password, IP, and port from your proxy list if you use authorization by login/password.
entry = ('login:password@Host:Port')
query = urllib.request.ProxyHandler({
'http': entry,
'https': entry,
execute = urllib.request.build_opener(query)