Skip to content

Integrationen

Verbinde HasProxy mit den Tools, die dein Stack bereits nutzt.

cURLPython / RequestsNode.js / AxiosPuppeteerPlaywrightSelenium (Python)ScrapyPostman
cURL
curl -x http://USER+country=us:[email protected]:8082 \
  https://api.ipify.org?format=json
Python / Requests
import requests
proxy = "http://USER+country=us:[email protected]:8082"
print(requests.get("https://api.ipify.org?format=json",
  proxies={"http": proxy, "https": proxy}, timeout=15).json())
Node.js / Axios
const axios = require("axios");
axios.get("https://api.ipify.org?format=json", {
  proxy: { host: "rs.hasproxy.com", port: 8082,
    auth: { username: "USER+country=us", password: "PASS" } }
}).then(r => console.log(r.data));
Puppeteer
const browser = await puppeteer.launch({
  args: ["--proxy-server=http://rs.hasproxy.com:8082"]
});
const page = await browser.newPage();
await page.authenticate({
  username: "USER+country=us", password: "PASS"
});
Playwright
const browser = await chromium.launch();
const context = await browser.newContext({
  proxy: { server: "http://rs.hasproxy.com:8082",
    username: "USER+country=us", password: "PASS" }
});
Selenium (Python)
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--proxy-server=http://rs.hasproxy.com:8082")
# Pass user:pass via extension or proxy auth helper for Chrome
Scrapy
# settings.py or middleware
PROXY = "http://USER+country=us:[email protected]:8082"
# Use scrapy-rotating-proxies or custom middleware with PROXY
Postman
Settings → Proxy → custom proxy
Host: rs.hasproxy.com  Port: 8082
Auth: USER+country=us / PASS