Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 522 Bytes

File metadata and controls

39 lines (28 loc) · 522 Bytes

ProxyPool

A simple proxy tool written by golang.

Usage

Config

{
  "ServerIP": "localhost",
  "ServerPort": 8080, // 监听
  "ProxyRedis": {
    "Server": "127.0.0.1:6379" // redis服务地址,依赖redis zset存储代理IP
  }
}

Run Server

make run

Example

import requests

proxies = {
    'http': 'http://127.0.0.1:8080',
    'https': 'http://127.0.0.1:8080',
}

url = 'https://myip.ipip.net/'
resp = requests.get(url, proxies=proxies,timeout=10).text
print(resp)