{"id":13841806,"url":"https://github.com/pingc0y/go_proxy_pool","last_synced_at":"2026-01-12T11:50:16.336Z","repository":{"id":63282632,"uuid":"565713957","full_name":"pingc0y/go_proxy_pool","owner":"pingc0y","description":"无环境依赖开箱即用的代理IP池","archived":false,"fork":false,"pushed_at":"2023-05-03T03:33:23.000Z","size":46877,"stargazers_count":724,"open_issues_count":7,"forks_count":106,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-05T17:29:09.791Z","etag":null,"topics":["proxy","proxy-server","proxypool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pingc0y.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-14T07:00:52.000Z","updated_at":"2024-08-04T17:30:03.000Z","dependencies_parsed_at":"2023-01-22T19:16:15.618Z","dependency_job_id":null,"html_url":"https://github.com/pingc0y/go_proxy_pool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingc0y%2Fgo_proxy_pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingc0y%2Fgo_proxy_pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingc0y%2Fgo_proxy_pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingc0y%2Fgo_proxy_pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pingc0y","download_url":"https://codeload.github.com/pingc0y/go_proxy_pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225729687,"owners_count":17515154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proxy","proxy-server","proxypool"],"created_at":"2024-08-04T17:01:21.510Z","updated_at":"2026-01-12T11:50:16.330Z","avatar_url":"https://github.com/pingc0y.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# goProxyPool\n\n一款无环境依赖开箱即用的免费代理IP池   \n\n内置14个免费代理源，均使用内置的简单正则获取  \n\n支持调用插件扩展代理源，返回的数据符合格式即可，无开发语言限制  \n\n支持webApi获取、删除、更新等代理池内的IP \n\n支持 http，socket5 隧道代理模式，无需手动更换IP  \n\n遇到bug或有好的建议，欢迎提issue\n\n## 隧道代理\n隧道代理是代理IP存在的一种方式。  \n相对于传统固定代理IP，它的特点是自动地在代理服务器上改变IP，这样每个请求都使用一个不同的IP。\n\n## 代理IP特征\n这里提供一些代理IP的特征，师傅们可通过特征自己写代理源，api获取的话内置的正则方式就能写  \n360网络空间测绘_socket5：\n```text\nprotocol:\"socks5\" AND \"Accepted Auth Method: 0x0\" AND \"connection: close\" AND country: \"China\"  \n```\nfofa_http:\n```text  \n\"HTTP/1.1 403 Forbidden Server: nginx/1.12.1\" \u0026\u0026 port=\"9091\"   \n\nport=\"3128\" \u0026\u0026 title=\"ERROR: The requested URL could not be retrieved\"  \n\n\"X-Cache: 'MISS from VideoCacheBox/CE8265A63696DECD7F0D17858B1BDADC37771805'\" \u0026\u0026 \"X-Squid-Error: ERR_ACCESS_DENIED 0\"  \n```\nhunter_http：\n```text\nheader.server=\"nginx/2.2.200603d\"\u0026\u0026web.title=\"502 Bad Gateway\" \u0026\u0026 ip.port=\"8085\"\n```\n\n# 截图\n[![zuz6TU.png](https://s1.ax1x.com/2022/11/19/zuz6TU.png)](https://s1.ax1x.com/2022/11/19/zuz6TU.png)\n# 使用说明\n下载 \n```\ngit clone https://github.com/pingc0y/go_proxy_pool.git\n```\n编译（直接使用成品，就无需编译）  \n以下是在windows环境下，编译出各平台可执行文件的命令  \n```\nSET CGO_ENABLED=0\nSET GOOS=windows\nSET GOARCH=amd64\ngo build -ldflags \"-s -w\" -o ../goProxyPool-windows-amd64.exe\n\nSET CGO_ENABLED=0\nSET GOOS=windows\nSET GOARCH=386\ngo build -ldflags \"-s -w\"  -o ../goProxyPool-windows-386.exe\n\nSET CGO_ENABLED=0\nSET GOOS=linux\nSET GOARCH=amd64\ngo build -ldflags \"-s -w\" -o ../goProxyPool-linux-amd64\n\nSET CGO_ENABLED=0\nSET GOOS=linux\nSET GOARCH=arm64\ngo build -ldflags \"-s -w\" -o ../goProxyPool-linux-arm64\n\nSET CGO_ENABLED=0\nSET GOOS=linux\nSET GOARCH=386\ngo build -ldflags \"-s -w\" -o ../goProxyPool-linux-386\n\nSET CGO_ENABLED=0\nSET GOOS=darwin\nSET GOARCH=amd64\ngo build -ldflags \"-s -w\" -o ../goProxyPool-macos-amd64\n\nSET CGO_ENABLED=0\nSET GOOS=darwin\nSET GOARCH=arm64\ngo build -ldflags \"-s -w\" -o ../goProxyPool-macos-arm64\n\n```\n运行  \n需要与config.yml在同一目录  \n注意：抓取代理会进行类型地区等验证会比较缓慢，存活验证会快很多\n```\n.\\goProxyPool.exe\n```\n\n代理源中有部分需要翻墙才能访问，有条件就设置下config.yml的代理配置\n```yml\nproxy:\n  host: 127.0.0.1\n  port: 10809\n```\n## webAPi说明\n查看代理池情况\n```\nhttp://127.0.0.1:8080/\n```\n\n获取代理\n```\nhttp://127.0.0.1:8080/get?type=HTTP\u0026count=10\u0026anonymity=all\n可选参数：\ntype        代理类型\nanonymity   匿名度\ncountry     国家\nsource      代理源\ncount       代理数量\n获取所有：all\n```\n\n删除代理\n```\nhttp://127.0.0.1:8080/delete?ip=127.0.0.1\u0026port=8888\n必须传参：\nip      代理ip\nport    代理端口\n```\n\n验证代理\n```\nhttp://127.0.0.1:8080/verify\n```\n\n更换隧道代理IP\n```\nhttp://127.0.0.1:8080/tunnelUpdate\n```\n\n抓取代理\n```\nhttp://127.0.0.1:8080/spider\n```\n## 代理字段解读\n```go\ntype ProxyIp struct {\n    Ip         string //IP地址\n    Port       string //代理端口\n    Country    string //代理国家\n    Province   string //代理省份\n    City       string //代理城市\n    Isp        string //IP提供商\n    Type       string //代理类型\n    Anonymity  string //代理匿名度, 透明：显示真实IP, 普匿：显示假的IP, 高匿：无代理IP特征\n    Time       string //代理验证\n    Speed      string //代理响应速度\n    SuccessNum int    //验证请求成功的次数\n    RequestNum int    //验证请求的次数\n    Source     string //代理源\n}\n```\n## 配置文件\n```yaml\n#使用代理去获取代理IP\nproxy:\n  host: 127.0.0.1\n  port: 10809\n\n# 配置信息\nconfig:\n  #监听IP\n  ip: 0.0.0.0\n  #web监听端口\n  port: 8080\n  #http隧道代理端口\n  httpTunnelPort: 8111\n  #socket隧道代理端口\n  socketTunnelPort: 8112\n  #隧道代理更换时间秒\n  tunnelTime: 60\n  #可用IP数量小于‘proxyNum’时就去抓取\n  proxyNum: 50\n  #代理IP验证间隔秒\n  verifyTime: 1800\n  #抓取/检测状态线程数\n  threadNum: 200\n\n#ip源\nspider:\n    #代理获取源1\n  - name: '齐云代理'\n    #请求方式\n    method: 'GET'\n    #POST传参用的请求体\n    body: ''\n    #urls请求间隔/秒，防止频率过快被限制\n    interval: 0\n    #使用的请求头\n    Headers:\n      User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'\n    #获取的地址\n    urls: 'https://proxy.ip3366.net/free/?action=china\u0026page=1,https://proxy.ip3366.net/free/?action=china\u0026page=2,https://proxy.ip3366.net/free/?action=china\u0026page=3'\n    #获取IP的正则表达式，\n    ip: '\\\"IP\\\"\u003e(\\d+?\\.\\d+?.\\d+?\\.\\d+?)\u003c/td\u003e'\n    #获取端口的正则表达式\n    port: '\\\"PORT\\\"\u003e(\\d+?)\u003c/td\u003e'\n    #是否使用代理去请求\n    proxy: false\n      \n#通过插件，扩展ip源\nspiderPlugin:\n  #插件名\n  - name: test\n    #运行命令，返回的结果要符合格式\n    run: '.\\test1.exe'\n    \n#通过文件，导入IP\nspiderFile:\n  #文件名\n  - name: test1\n    #文件路径\n    path: 'ip.txt'\n```\n### 扩展返回格式\n通过,分割\n```text\n110.179.64.89:1080,111.2.155.180:1090,111.172.3.212:1090,111.196.186.95:6669\n```\n### 文件导入格式\n通过换行分割\n```text\n110.179.64.89:1080\n111.2.155.180:1090\n111.172.3.212:1090\n111.196.186.95:6669\n111.201.103.29:1080\n113.12.200.66:1080\n113.67.96.67:1090\n113.104.217.45:1080\n113.110.246.76:1080\n113.116.9.18:1080\n113.119.193.183:1090\n113.119.193.187:1090\n113.249.93.219:1080\n114.95.200.164:1080\n115.193.161.177:1080\n```\n\n\n## 更新说明\n2022/11/22  \n修复 ip归属地接口更换  \n优化 验证代理   \n\n2022/11/19  \n新增 socket5代理  \n新增 文件导入代理  \n新增 显示验证进度  \n新增 验证webApi  \n修改 扩展导入格式  \n优化 代理验证方式  \n优化 匿名度改为自动识别  \n修复 若干bug  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingc0y%2Fgo_proxy_pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpingc0y%2Fgo_proxy_pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingc0y%2Fgo_proxy_pool/lists"}