Connect Python to your proxy plan
Run price, stock and SERP checks in Python, whether in a short requests script or a full Scrapy project.
Set up once, then roll out to the team
One person can handle the setup for everyone. After the order is confirmed, copy the host, port and login from your dashboard into the sample below in place of USERNAME, PASSWORD and gateway.proxy:8080. Run it once and look at the address it returns: it should be a proxy IP, not your own. Then add the same settings to each script your team runs, keep every job within the target site’s terms, and store the login with your other work passwords rather than in a shared document.
import requests
proxy = "http://USERNAME:PASSWORD@gateway.proxy:8080"
r = requests.get(
"https://api.ipify.org?format=json",
proxies={"http": proxy, "https": proxy},
timeout=30,
)
print(r.json()) # the proxy's exit IP