首購優惠 點墼参與最新優惠活動 !

獲取代理
Socks5代理
立即購買

全球純淨度最高的住宅IP供應商

深受全球190多個國家客戶的信賴

360Proxy在功能和用戶體驗方面都有出色表現,受到行業廣泛認可:

為什麼選擇360Proxy

世界領先的80M+住宅代理池,廣泛的無縫集成選項,擴大你的業務規模。

立即使用

覆蓋全球190+國家

目標任何國家/城市/郵編/ISP

99.9%的正常運行時間

住宅代理

業內最快的住宅代理服務,來自合法來源的真實住宅IP,按照流量計费。

HTTP(s) + SOCKS5

190+ 地點

99.5%的成功率

瞭解更多

靜態住宅代理

提供廣泛的地理位置範圍,長期帳戶管理、電子商務的理想選擇。

真正的住宅IP

99.9%正常運轉時間

HTTP(s) + SOCKS5

瞭解更多

一個平台,多種獲取代理的方式

用戶:密碼認證

Socks5代理軟件

用戶:密碼認證
Socks5代理軟件

易於集成和定製,自定義IP地理位置,各種常見的編程語言代碼示例,確保您可以快速入門。

適用於以下計劃:住宅代理。

自由創建密碼憑證
與第三方軟件輕鬆集成
旋轉和粘性會話

支持的熱門語言

輕鬆將我們的解決方案整合到您的業務中

我們確保盡可能輕鬆地將我們的產品整合到您的抓取基礎架構中。憑藉多語言支持和現成的程序demo示例,可以保證快速輕鬆地開始您的數據抓取業務。

查看文檔

  #include iostream
  #include stdio.h
  #include string
  #include Windows.h
  #include "curl/curl.h"
  #pragma comment(lib, "libcurl.lib")
  using namespace std;

  static size_t write_buff_data(char* buffer, size_t size, size_t nitems, void* outstream)
  {//Copy the received data to the cache
  memcpy(outstream, buffer, nitems * size);
  return nitems * size;
  }
  /*
  Use HTTP proxy
  */
  int GetUrlHTTP(char* url, char* buff)
  {
  CURL* curl;
  CURLcode res;
  curl = curl_easy_init();
  if (curl)
  {
      curl_easy_setopt(curl, CURLOPT_PROXY, "http://ip:port");//Set HTTP proxy address
      curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "User name: password");//Proxy username password
      curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*)buff);//Set Read-Write Cache
      curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_buff_data);//Set Callback Function
      curl_easy_setopt(curl, CURLOPT_URL, url);//Set URL address
      curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 10L);//Sets a long integer to control how many seconds CURLOPT_LOW_SPEED_LIMIT bytes are passed
      curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 50L);//Set a long integer to control how many bytes are transferred
      curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, 2000000L);//Maximum download speed

      res = curl_easy_perform(curl);
      curl_easy_cleanup(curl);
      if (res == CURLE_OK) {
          return res;
      }
      else {
          printf("error code:%d\n", res);
          MessageBox(NULL, TEXT("Get IP Error"), TEXT("assistant"), MB_ICONINFORMATION | MB_YESNO);
      }
  }
  return res;
  }
                  
  package main

  import (
      "context"
      "fmt"
      "golang.org/x/net/proxy"
      "io/ioutil"
      "net"
      "net/http"
      "net/url"
      "strings"
      "time"
  )
  
  var testApi = "https://api.ipify.org/?format=json"
  
  func main() {
      var proxyIP = ""
      var username = "xxx-zone-isp"
      var password = ""
      httpProxy(proxyIP, username, password)
      time.Sleep(time.Second * 1)
      Socks5Proxy(proxyIP, username, password)
  
  }
  func httpProxy(proxyUrl, user, pass string) {
      defer func() {
          if err := recover(); err != nil {
              fmt.Println(err)
          }
      }()
      urli := url.URL{}
  
      if !strings.Contains(proxyUrl, "http") {
          proxyUrl = fmt.Sprintf("http://%s", proxyUrl)
      }
  
      urlProxy, _ := urli.Parse(proxyUrl)
      if user != "" && pass != "" {
          urlProxy.User = url.UserPassword(user, pass)
      }
  
      client := &http.Client{
          Transport: &http.Transport{
              Proxy: http.ProxyURL(urlProxy),
          },
      }
      rqt, err := http.NewRequest("GET", testApi, nil)
      if err != nil {
          panic(err)
          return
      }
      response, err := client.Do(rqt)
      if err != nil {
          panic(err)
          return
      }
  
      defer response.Body.Close()
      body, _ := ioutil.ReadAll(response.Body)
      fmt.Println("http result = ", response.Status, string(body))
  
      return
  }
  
  func Socks5Proxy(proxyUrl, user, pass string) {
  
      defer func() {
          if err := recover(); err != nil {
              fmt.Println(err)
          }
      }()
  
      var userAuth proxy.Auth
      if user != "" && pass != "" {
          userAuth.User = user
          userAuth.Password = pass
      }
      dialer, err := proxy.SOCKS5("tcp", proxyUrl, &userAuth, proxy.Direct)
      if err != nil {
          panic(err)
      }
      httpClient := &http.Client{
          Transport: &http.Transport{
              DialContext: func(ctx context.Context, network, addr string) (conn net.Conn, err error) {
                  return dialer.Dial(network, addr)
              },
          },
          Timeout: time.Second * 10,
      }
  
      if resp, err := httpClient.Get(testApi); err != nil {
          panic(err)
      } else {
          defer resp.Body.Close()
          body, _ := ioutil.ReadAll(resp.Body)
          fmt.Println("socks5 result = ",string(body))
      }
  }


  const SocksProxyAgent = require("socks-proxy-agent");
  const net = require("net");
  const proxyHost = "proxy-server-hostname";
  const proxyPort = 1080;
  const proxyUsername = "your-username";
  const proxyPassword = "your-password";
  const agent = new SocksProxyAgent({
  host: proxyHost,
  port: proxyPort,
  auth: `${proxyUsername}:${proxyPassword}`
  });
  const socket = net.connect({
  host: "destination-hostname",
  port: 80,
  agent
  });
  socket.on("connect", () => {
  console.log("Connected to destination server through SOCKS5 proxy.");
  });
  socket.on("error", err => {
  console.error("Error:", err);
  });

  <?php
  $targetUrl = "https://www.google.com/";
  $proxyServer = "http://";
  $proxyUserPwd = "user:psswd";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $targetUrl);
  curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, false);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_PROXYTYPE, 0); //http
  // curl_setopt($ch, CURLOPT_PROXYTYPE, 5); //sock5
  curl_setopt($ch, CURLOPT_PROXY, $proxyServer);
  curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727;)");
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
  curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  curl_setopt($ch, CURLOPT_HEADER, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxyUserPwd);
  $result = curl_exec($ch);
  $err = curl_error($ch);
  curl_close($ch);
  var_dump($err);
  var_dump($result);
  ?>

  package demo;
  import okhttp3.Credentials;
  import okhttp3.OkHttpClient;
  import okhttp3.Request;

  import java.io.IOException;
  import java.net.InetSocketAddress;
  import java.net.PasswordAuthentication;
  import java.net.Proxy;

  /**
  * compile 'com.squareup.okhttp3:okhttp:3.10.0'
  */
  class AutProxyJava {
  public static void main(String[] args) throws IOException {
      testWithOkHttp();

      testSocks5WithOkHttp();
  }

  public static void testWithOkHttp() throws IOException {
      String url = "https://api.ipify.org?format=json";
      Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("asg.360s5.com", 3600));
      OkHttpClient client = new OkHttpClient().newBuilder().proxy(proxy).proxyAuthenticator((route, response) -> {
          String credential = Credentials.basic("username-zone-custom", password);
              return response.request().newBuilder()
          .header("Proxy-Authorization", credential).build();
      }).build();


      Request request = new Request.Builder().url(url).build();
      okhttp3.Response response = client.newCall(request).execute();
      String responseString = response.body().string();
      System.out.println(responseString);
  }

  public static void testSocks5WithOkHttp() throws IOException {
      String url = "https://api.ipify.org?format=json";
      Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("asg.360s5.com", 3600));
      java.net.Authenticator.setDefault(new java.net.Authenticator() {
          private PasswordAuthentication authentication =
          new PasswordAuthentication("laylay-zone-isp", "123456".toCharArray());

          @Override
          protected PasswordAuthentication getPasswordAuthentication() {
              return authentication;
          }
      });
      OkHttpClient client = new OkHttpClient().newBuilder().proxy(proxy).build();

      Request request = new Request.Builder().url(url).build();
      okhttp3.Response response = client.newCall(request).execute();
      String responseString = response.body().string();
      System.out.println(responseString);
  }
  }

  import urllib
  import socks
  import http.client
  from urllib.error import URLError
  import ssl
  from urllib.request import build_opener, HTTPHandler, HTTPSHandler


  def merge_dict(a, b):
  d = a.copy()
  d.update(b)
  return d


  class SocksiPyConnection(http.client.HTTPConnection):
  def __init__(self, proxytype, proxyaddr, proxyport=None, rdns=True, username=None, password=None, *args, **kwargs):
      self.proxyargs = (proxytype, proxyaddr, proxyport, rdns, username, password)
      http.client.HTTPConnection.__init__(self, *args, **kwargs)

  def connect(self):
      self.sock = socks.socksocket()
      self.sock.setproxy(*self.proxyargs)
      if type(self.timeout) in (int, float):
          self.sock.settimeout(self.timeout)
      self.sock.connect((self.host, self.port))


  class SocksiPyConnectionS(http.client.HTTPSConnection):
  def __init__(self, proxytype, proxyaddr, proxyport=None, rdns=True, username=None, password=None, *args, **kwargs):
      self.proxyargs = (proxytype, proxyaddr, proxyport, rdns, username, password)
      http.client.HTTPSConnection.__init__(self, *args, **kwargs)

  def connect(self):
      sock = socks.socksocket()
      sock.setproxy(*self.proxyargs)
      if type(self.timeout) in (int, float):
          sock.settimeout(self.timeout)
      sock.connect((self.host, self.port))
      self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)


  class SocksiPyHandler(HTTPHandler, HTTPSHandler):
  def __init__(self, *args, **kwargs):
      self.args = args
      self.kw = kwargs
      HTTPHandler.__init__(self)

  def http_open(self, req):
      def build(host, port=None, timeout=0, **kwargs):
          kw = merge_dict(self.kw, kwargs)
          conn = SocksiPyConnection(*self.args, host=host, port=port, timeout=timeout, **kw)
          return conn

      return self.do_open(build, req)

  def https_open(self, req):
      def build(host, port=None, timeout=0, **kwargs):
          kw = merge_dict(self.kw, kwargs)
          conn = SocksiPyConnectionS(*self.args, host=host, port=port, timeout=timeout, **kw)
          return conn

      return self.do_open(build, req)


  username = ""
  password = ""
  ip = "asg.360s5.com"
  port = 3600
  proxy = "socks5://{username}:{password}@{ip}:{port}".format(username=username, password=password, ip=ip, port=port)
  # socks.set_default_proxy(socks.SOCKS5, ip, port,username=username,password=password)
  # socket.socket = socks.socksocket

  url = 'https://www.google.com/'

  try:
  req = urllib.request.Request(url=url, headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'})
  opener = build_opener(SocksiPyHandler(socks.SOCKS5, ip, port, username=username, password=password))
  response = opener.open(req)
  # response = urllib.request.urlopen(req)
  # response = request.urlopen(url)
  print(response.read().decode('utf-8'))
  except URLError as e:
  print(e)
C/C++
Go
Node.js
Php
JAVA
Python

不斷增長的住宅
代理池

360Proxy以嚴謹的標準,精心挑選行業內合規的合作夥伴,為客戶提供道德來源的住宅代理,8000多萬的住宅代理池,覆蓋全球190多個地點,為您的行業提供動力。

美國

9,489,397 IPs

巴西

1,246,849 IPs

英國

166,431 IPs

德國

4,982,127 IPs

土耳其

6,633,262 IPs

香港

119,312 IPs

澳大利亞

2,002,418 IPs

日本

3,662,712 IPs

選擇360Proxy是我們數據保護和廣告驗證的最佳決策。其提供的住宅IP不僅在匿名性上表現出色,而且連接的穩定性和速度也令人滿意。這對於我們需要在廣告行業保持領先地位的創意團隊來說是一個強大的工具,爲我們的創意項目提供了更可靠的支持。

Carol 創意總監

360Proxy的住宅代理服務爲我們的市場調查提供了可靠的技術支持,確保我們的產品獲得充足的數據幫助。藉助多語言支持和線程化的程序demo示例,我們能夠以更快速、更精準的方式進行數據抓取,爲業務的發展提供了幫助!

Billy 首席執行官

360Proxy住宅代理服務爲我們的運營提供了出色的支持。其廣泛的IP資源池覆蓋全球多個國家,使我們能夠更精準地進行市場監測。匿名性和連接的穩定性是我們在業務運營中十分看重的要素,360Proxy在這兩方面都表現出色,是我們首選的合作伙伴。

Henry 首席運營官

使用案例

使用360Proxy發展您的業務

立即使用

如有問題,请通过[email protected]聯係我們。