You should have the following installed:

Once you've completed the installation of those two things, you can then go to the next section to see example code that can be inserted directly to your project. 

Example code 

Required lines to use Proxy Pilot:

  • r = requests.get(url, headers=headers, proxies=proxies, verify=False)
    • verify=False "ignores" the certificate warnings

  • (OPTIONAL)  # r = requests.get(url, headers=headers, proxies=proxies, verify='./public/ca.pem'') 
    • If you wish to have a secure connection between your server and our server, you can install our certificate and use it in Python. For most users, this is not necessary and you can simply "Ignore" the certificate errors. You can download the certificate here.

Copy and paste the following code into your project: 

import requests

url = ""
proxies = {
headers = {
    'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36',
    'content-encoding': 'gzip'

# r = requests.get(url, headers=headers, proxies=proxies, verify='./public/ca.pem'')
r = requests.get(url, headers=headers, proxies=proxies, verify=False)

print(f"Response Body: {r.text}\n"
    "Request Headers:"
    f"Response Time: {r.elapsed.total_seconds()}\n"
    f"Response Code: {r.status_code}\n"
    f"Response Headers: {r.headers}\n\n"
    f"Response Cookies: {r.cookies.items()}\n\n"
    f"Requesting {url}\n"

Once this code is installed, you should visit your Proxy Pilot user dashboard to retrieve your proxy username, password, IP, and port. Replace the values in the "proxies" variable in the code with these values from your dashboard.